Skip to content

Commit 5c8824d

Browse files
Rollup merge of rust-lang#37757 - rust-lang:E0002-precision, r=brson
Uncomment some long error explanation Retry of rust-lang#37058. r? @steveklabnik cc @brson
2 parents 9ed3797 + e4a9d83 commit 5c8824d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc_const_eval/diagnostics.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Ensure the ordering of the match arm is correct and remove any superfluous
4040
arms.
4141
"##,
4242

43-
/*E0002: r##"
43+
E0002: r##"
44+
## Note: this error code is no longer emitted by the compiler.
45+
4446
This error indicates that an empty match expression is invalid because the type
4547
it is matching on is non-empty (there exist values of this type). In safe code
4648
it is impossible to create an instance of an empty type, so empty match
@@ -68,10 +70,11 @@ fn foo(x: Option<String>) {
6870
}
6971
}
7072
```
71-
"##,*/
73+
"##,
7274

75+
E0003: r##"
76+
## Note: this error code is no longer emitted by the compiler.
7377
74-
/*E0003: r##"
7578
Not-a-Number (NaN) values cannot be compared for equality and hence can never
7679
match the input to a match expression. So, the following will not compile:
7780
@@ -98,7 +101,6 @@ match number {
98101
}
99102
```
100103
"##,
101-
*/
102104

103105
E0004: r##"
104106
This error indicates that the compiler cannot guarantee a matching pattern for

0 commit comments

Comments
 (0)