Skip to content

Commit b69dc91

Browse files
committed
---
yaml --- r: 152213 b: refs/heads/try2 c: e38fde7 h: refs/heads/master i: 152211: d13f685 v: v3
1 parent df4c7d7 commit b69dc91

File tree

4 files changed

+4
-41
lines changed

4 files changed

+4
-41
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 46dad765f047ae5cd49a4b6e509ab726c48838c8
8+
refs/heads/try2: e38fde71b1dede9772043b71fe09c43b4ba61b8c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ An example of re-exporting:
904904
~~~~
905905
# fn main() { }
906906
mod quux {
907-
pub use quux::foo::*;
907+
pub use quux::foo::{bar, baz};
908908
909909
pub mod foo {
910910
pub fn bar() { }
@@ -913,10 +913,10 @@ mod quux {
913913
}
914914
~~~~
915915

916-
In this example, the module `quux` re-exports all of the public names defined in `foo`.
916+
In this example, the module `quux` re-exports two public names defined in `foo`.
917917

918918
Also note that the paths contained in `use` items are relative to the crate root.
919-
So, in the previous example, the `use` refers to `quux::foo::*`, and not simply to `foo::*`.
919+
So, in the previous example, the `use` refers to `quux::foo::{bar, baz}`, and not simply to `foo::{bar, baz}`.
920920
This also means that top-level module declarations should be at the crate root if direct usage
921921
of the declared modules within `use` items is desired. It is also possible to use `self` and `super`
922922
at the beginning of a `use` item to refer to the current and direct parent modules respectively.

branches/try2/src/libsyntax/ext/deriving/encodable.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,6 @@ fn encodable_substructure(cx: &mut ExtCtxt, trait_span: Span,
175175
stmts.push(cx.stmt_expr(call));
176176
}
177177

178-
// unit structs have no fields and need to return Ok()
179-
if stmts.is_empty() {
180-
let ret_ok = cx.expr(trait_span,
181-
ExprRet(Some(cx.expr_ok(trait_span,
182-
cx.expr_lit(trait_span, LitNil)))));
183-
stmts.push(cx.stmt_expr(ret_ok));
184-
}
185-
186178
let blk = cx.lambda_stmts_1(trait_span, stmts, blkarg);
187179
cx.expr_method_call(trait_span,
188180
encoder,

branches/try2/src/test/run-pass/issue-14021.rs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)