Skip to content

Commit 3085789

Browse files
committed
Remove unused error code
1 parent 0901052 commit 3085789

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/librustc_mir/diagnostics.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,36 +72,6 @@ fn foo(x: Option<String>) {
7272
```
7373
"##,
7474

75-
E0003: r##"
76-
#### Note: this error code is no longer emitted by the compiler.
77-
78-
Not-a-Number (NaN) values cannot be compared for equality and hence can never
79-
match the input to a match expression. So, the following will not compile:
80-
81-
```compile_fail
82-
const NAN: f32 = 0.0 / 0.0;
83-
84-
let number = 0.1f32;
85-
86-
match number {
87-
NAN => { /* ... */ },
88-
_ => {}
89-
}
90-
```
91-
92-
To match against NaN values, you should instead use the `is_nan()` method in a
93-
guard, like so:
94-
95-
```
96-
let number = 0.1f32;
97-
98-
match number {
99-
x if x.is_nan() => { /* ... */ }
100-
_ => {}
101-
}
102-
```
103-
"##,
104-
10575
E0004: r##"
10676
This error indicates that the compiler cannot guarantee a matching pattern for
10777
one or more possible inputs to a match expression. Guaranteed matches are

0 commit comments

Comments
 (0)