Skip to content

Commit a256591

Browse files
committed
---
yaml --- r: 210517 b: refs/heads/try c: 459652c h: refs/heads/master i: 210515: e4018e5 v: v3
1 parent fa54a52 commit a256591

16 files changed

+24
-238
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 7984074e25e2d4ac2b5bc125d44e38a280f964f9
5+
refs/heads/try: 459652c832815118cf78c30f7a59cea99c43d308
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/doc/trpl/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ we can use the `unwrap()` method:
214214
io::stdin().read_line(&mut buffer).unwrap();
215215
```
216216

217-
`unwrap()` will `panic!` if the `Option` is `None`. This basically says "Give
217+
`unwrap()` will `panic!` if the `Result` is `Err`. This basically says "Give
218218
me the value, and if something goes wrong, just crash." This is less reliable
219219
than matching the error and attempting to recover, but is also significantly
220220
shorter. Sometimes, just crashing is appropriate.

branches/try/src/doc/trpl/guessing-game.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ prints a [string][strings] to the screen.
131131
let mut guess = String::new();
132132
```
133133

134-
Now we’re getting interesting! There’s a lot going on in this little line. The first thing to notice is that this is a [let statement][let], which is used to create ‘variable bindings’. They take this form:
134+
Now we’re getting interesting! There’s a lot going on in this little line.
135+
The first thing to notice is that this is a [let statement][let], which is
136+
used to create ‘variable bindings’. They take this form:
135137

136138
```rust,ignore
137139
let foo = bar;
@@ -171,7 +173,7 @@ bound to: `String::new()`.
171173

172174
[string]: ../std/string/struct.String.html
173175

174-
The `::new()` syntax is uses `::` because this is an ‘associated function’ of
176+
The `::new()` syntax uses `::` because this is an ‘associated function’ of
175177
a particular type. That is to say, it’s associated with `String` itself,
176178
rather than a particular instance of a `String`. Some languages call this a
177179
‘static method’.

branches/try/src/librustc/diagnostics.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ fn main() {
271271
See also http://doc.rust-lang.org/book/unsafe.html
272272
"##,
273273

274+
E0137: r##"
275+
This error indicates that the compiler found multiple functions with the
276+
#[main] attribute. This is an error because there must be a unique entry point
277+
into a Rust program.
278+
"##,
279+
274280
E0152: r##"
275281
Lang items are already implemented in the standard library. Unless you are
276282
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -800,7 +806,6 @@ register_diagnostics! {
800806
E0134,
801807
E0135,
802808
E0136,
803-
E0137,
804809
E0138,
805810
E0139,
806811
E0261, // use of undeclared lifetime name

branches/try/src/librustc_typeck/diagnostics.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ let x_is_nonzero = x as bool;
3434
```
3535
"##,
3636

37+
E0062: r##"
38+
This error indicates that during an attempt to build a struct or struct-like
39+
enum variant, one of the fields was specified more than once. Each field should
40+
be specified exactly one time.
41+
"##,
42+
43+
E0063: r##"
44+
This error indicates that during an attempt to build a struct or struct-like
45+
enum variant, one of the fields was not provided. Each field should be specified
46+
exactly once.
47+
"##,
48+
3749
E0081: r##"
3850
Enum discriminants are used to differentiate enum variants stored in memory.
3951
This error indicates that the same value was used for two or more variants,
@@ -136,8 +148,6 @@ register_diagnostics! {
136148
E0059,
137149
E0060,
138150
E0061,
139-
E0062,
140-
E0063,
141151
E0066,
142152
E0067,
143153
E0068,

branches/try/src/test/auxiliary/crateresolve3-1.rs

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

branches/try/src/test/auxiliary/crateresolve3-2.rs

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

branches/try/src/test/auxiliary/crateresolve5-1.rs

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

branches/try/src/test/auxiliary/crateresolve5-2.rs

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

branches/try/src/test/auxiliary/crateresolve7x.rs

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

branches/try/src/test/auxiliary/crateresolve8-1.rs

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

branches/try/src/test/auxiliary/crateresolve_calories-1.rs

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

branches/try/src/test/auxiliary/crateresolve_calories-2.rs

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

branches/try/src/test/auxiliary/inherit_struct_lib.rs

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

branches/try/src/test/auxiliary/issue_2242_a.rs

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

branches/try/src/test/auxiliary/issue_2242_c.rs

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

0 commit comments

Comments
 (0)