Skip to content

Commit 4b8577e

Browse files
---
yaml --- r: 222076 b: refs/heads/tmp c: c8b9e83 h: refs/heads/master v: v3
1 parent 40d1645 commit 4b8577e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 2b45108ecb944d63daba0f1b5529ac4c8afdc295
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 9e1ea5e5ee6369128e2a3005bb78edc059fa9195
28+
refs/heads/tmp: c8b9e8363a15c0476040869d2e6749018ae4a6b3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/librustc_resolve/diagnostics.rs

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

460+
E0426: r##"
461+
An undeclared label was used. Example of erroneous code:
462+
463+
```
464+
loop {
465+
break 'a; // error: use of undeclared label `'a`
466+
}
467+
```
468+
469+
Please verify you didn't misspell the label name or you did declare
470+
it. Example:
471+
472+
```
473+
'a: loop {
474+
break 'a; // ok!
475+
}
476+
```
477+
"##,
478+
460479
E0428: r##"
461480
A type or module has been defined more than once. Example of erroneous
462481
code:
@@ -563,7 +582,6 @@ register_diagnostics! {
563582
E0423, // is a struct variant name, but this expression uses it like a
564583
// function name
565584
E0425, // unresolved name
566-
E0426, // use of undeclared label
567585
E0427, // cannot use `ref` binding mode with ...
568586
E0429, // `self` imports are only allowed within a { } list
569587
E0434, // can't capture dynamic environment in a fn item

0 commit comments

Comments
 (0)