Skip to content

Commit b6c27c0

Browse files
---
yaml --- r: 228816 b: refs/heads/try c: 40617b6 h: refs/heads/master v: v3
1 parent 321b958 commit b6c27c0

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: c8b9e8363a15c0476040869d2e6749018ae4a6b3
4+
refs/heads/try: 40617b60cbbf78bb20ba662b192957b58d07dbba
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)