Skip to content

Commit 4136ba0

Browse files
committed
Remove E0001 diagnostic
1 parent a157082 commit 4136ba0

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

src/librustc_const_eval/diagnostics.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,6 @@
1515
// In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
1616
register_long_diagnostics! {
1717

18-
E0001: r##"
19-
This error suggests that the expression arm corresponding to the noted pattern
20-
will never be reached as for all possible values of the expression being
21-
matched, one of the preceding patterns will match.
22-
23-
This means that perhaps some of the preceding patterns are too general, this
24-
one is too specific or the ordering is incorrect.
25-
26-
For example, the following `match` block has too many arms:
27-
28-
```compile_fail,E0001
29-
match Some(0) {
30-
Some(bar) => {/* ... */}
31-
x => {/* ... */} // This handles the `None` case
32-
_ => {/* ... */} // All possible cases have already been handled
33-
}
34-
```
35-
36-
`match` blocks have their patterns matched in order, so, for example, putting
37-
a wildcard arm above a more specific arm will make the latter arm irrelevant.
38-
39-
Ensure the ordering of the match arm is correct and remove any superfluous
40-
arms.
41-
"##,
42-
4318
E0002: r##"
4419
## Note: this error code is no longer emitted by the compiler.
4520

src/test/compile-fail/feature-gate-rustc-diagnostic-macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// Test that diagnostic macros are gated by `rustc_diagnostic_macros` feature
1212
// gate
1313

14-
__register_diagnostic!(E0001);
14+
__register_diagnostic!(E0002);
1515
//~^ ERROR macro undefined: '__register_diagnostic!'
1616

1717
fn main() {
18-
__diagnostic_used!(E0001);
18+
__diagnostic_used!(E0002);
1919
//~^ ERROR macro undefined: '__diagnostic_used!'
2020
}
2121

0 commit comments

Comments
 (0)