about summary refs log tree commit diff
path: root/src/librustc_const_eval
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2016-12-29 12:38:02 +0800
committerAndrew Cann <shum@canndrew.org>2017-01-03 15:48:29 +0800
commit4136ba072e1b8ff5c06de2c3dc4b72773ae1b3e5 (patch)
tree9b2cf73d75c3895ae842b512d0d9e03f88c47420 /src/librustc_const_eval
parenta1570828b2b158afa755a5836b20c0fa5abc764a (diff)
downloadrust-4136ba072e1b8ff5c06de2c3dc4b72773ae1b3e5.tar.gz
rust-4136ba072e1b8ff5c06de2c3dc4b72773ae1b3e5.zip
Remove E0001 diagnostic
Diffstat (limited to 'src/librustc_const_eval')
-rw-r--r--src/librustc_const_eval/diagnostics.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/librustc_const_eval/diagnostics.rs b/src/librustc_const_eval/diagnostics.rs
index 139443a1719..c809eef917f 100644
--- a/src/librustc_const_eval/diagnostics.rs
+++ b/src/librustc_const_eval/diagnostics.rs
@@ -15,31 +15,6 @@
 // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
 register_long_diagnostics! {
 
-E0001: r##"
-This error suggests that the expression arm corresponding to the noted pattern
-will never be reached as for all possible values of the expression being
-matched, one of the preceding patterns will match.
-
-This means that perhaps some of the preceding patterns are too general, this
-one is too specific or the ordering is incorrect.
-
-For example, the following `match` block has too many arms:
-
-```compile_fail,E0001
-match Some(0) {
-    Some(bar) => {/* ... */}
-    x => {/* ... */} // This handles the `None` case
-    _ => {/* ... */} // All possible cases have already been handled
-}
-```
-
-`match` blocks have their patterns matched in order, so, for example, putting
-a wildcard arm above a more specific arm will make the latter arm irrelevant.
-
-Ensure the ordering of the match arm is correct and remove any superfluous
-arms.
-"##,
-
 E0002: r##"
 ## Note: this error code is no longer emitted by the compiler.