Skip to content

Commit 088c30b

Browse files
committed
---
yaml --- r: 116421 b: refs/heads/snap-stage3 c: e38fde7 h: refs/heads/master i: 116419: b2032ca v: v3
1 parent 6eae3e9 commit 088c30b

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 46dad765f047ae5cd49a4b6e509ab726c48838c8
4+
refs/heads/snap-stage3: e38fde71b1dede9772043b71fe09c43b4ba61b8c
55
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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/snap-stage3/src/test/run-pass/issue-14021.rs

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

0 commit comments

Comments
 (0)