Skip to content

Commit ad3b4b7

Browse files
---
yaml --- r: 235887 b: refs/heads/stable c: 40617b6 h: refs/heads/master i: 235885: c114997 235883: ed196e6 235879: ce85169 235871: 936459e v: v3
1 parent 41bb1fc commit ad3b4b7

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: c8b9e8363a15c0476040869d2e6749018ae4a6b3
32+
refs/heads/stable: 40617b60cbbf78bb20ba662b192957b58d07dbba
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_resolve/diagnostics.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,29 @@ impl Foo {
457457
```
458458
"##,
459459

460+
E0425: r##"
461+
An unresolved name was used. Example of erroneous code:
462+
463+
```
464+
something_that_doesnt_exist::foo; // error: unresolved name `f::foo`
465+
```
466+
467+
Please verify you didn't misspell the name or that you're not using an
468+
invalid object. Example:
469+
470+
```
471+
enum something_that_does_exist {
472+
foo
473+
}
474+
// or:
475+
mod something_that_does_exist {
476+
pub static foo : i32 = 0i32;
477+
}
478+
479+
something_that_does_exist::foo; // ok!
480+
```
481+
"##,
482+
460483
E0426: r##"
461484
An undeclared label was used. Example of erroneous code:
462485
@@ -581,7 +604,6 @@ register_diagnostics! {
581604
E0422, // does not name a structure
582605
E0423, // is a struct variant name, but this expression uses it like a
583606
// function name
584-
E0425, // unresolved name
585607
E0427, // cannot use `ref` binding mode with ...
586608
E0429, // `self` imports are only allowed within a { } list
587609
E0434, // can't capture dynamic environment in a fn item

0 commit comments

Comments
 (0)