Skip to content

Commit 443e45a

Browse files
---
yaml --- r: 224305 b: refs/heads/beta c: fc65f55 h: refs/heads/master i: 224303: f445f97 v: v3
1 parent 878c6b3 commit 443e45a

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 40617b60cbbf78bb20ba662b192957b58d07dbba
26+
refs/heads/beta: fc65f5551d00b4a83192cc054b6294cf855ba748
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_resolve/diagnostics.rs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ impl Foo {
440440
}
441441
```
442442
443-
Please check if the method's argument list should have contained self,
444-
&self, or &mut self (in case you didn't want to create a static method),
445-
and add it if so. Example:
443+
Please check if the method's argument list should have contained `self`,
444+
`&self`, or `&mut self` (in case you didn't want to create a static
445+
method), and add it if so. Example:
446446
447447
```
448448
struct Foo;
@@ -458,10 +458,18 @@ impl Foo {
458458
"##,
459459

460460
E0425: r##"
461-
An unresolved name was used. Example of erroneous code:
461+
An unresolved name was used. Example of erroneous codes:
462462
463463
```
464-
something_that_doesnt_exist::foo; // error: unresolved name `f::foo`
464+
something_that_doesnt_exist::foo;
465+
// error: unresolved name `something_that_doesnt_exist::foo`
466+
467+
// or:
468+
trait Foo {
469+
fn bar() {
470+
Self; // error: unresolved name `Self`
471+
}
472+
}
465473
```
466474
467475
Please verify you didn't misspell the name or that you're not using an
@@ -489,8 +497,7 @@ loop {
489497
}
490498
```
491499
492-
Please verify you didn't misspell the label name or you did declare
493-
it. Example:
500+
Please verify you spelt or declare the label correctly. Example:
494501
495502
```
496503
'a: loop {
@@ -541,8 +548,8 @@ use {self}; // error: `self` import can only appear in an import list with a
541548
// non-empty prefix
542549
```
543550
544-
You can't import the current module in itself, please remove this import or
545-
verify you didn't misspell it.
551+
You cannot import the current module into itself, please remove this import
552+
or verify you didn't misspell it.
546553
"##,
547554

548555
E0432: r##"

0 commit comments

Comments
 (0)