about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-08-07 15:37:13 -0700
committerZack M. Davis <code@zackmdavis.net>2017-08-09 01:33:50 -0700
commit116bf07c3224301a234a3a9f4b9c137013f6164f (patch)
treeb10737ae4a2ded578e7886a129202fbb73fc9d86
parent93bc599d65d0f946944b3c97be3556658cc01eab (diff)
downloadrust-116bf07c3224301a234a3a9f4b9c137013f6164f.tar.gz
rust-116bf07c3224301a234a3a9f4b9c137013f6164f.zip
extended information for E0557 feature has been removed
-rw-r--r--src/libsyntax/diagnostic_list.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs
index 7c6db17a352..2ea3fe51d30 100644
--- a/src/libsyntax/diagnostic_list.rs
+++ b/src/libsyntax/diagnostic_list.rs
@@ -207,6 +207,18 @@ If you need the feature, make sure to use a nightly release of the compiler
 (but be warned that the feature may be removed or altered in the future).
 "##,
 
+E0557: r##"
+A feature attribute named a feature that has been removed.
+
+Erroneous code example:
+
+```compile_fail,E0557
+#![feature(managed_boxes)] // error: feature has been removed
+```
+
+Delete the offending feature attribute.
+"##,
+
 E0558: r##"
 The `export_name` attribute was malformed.
 
@@ -347,7 +359,6 @@ register_diagnostics! {
     E0551, // incorrect meta item
     E0555, // malformed feature attribute, expected #![feature(...)]
     E0556, // malformed feature, expected just one word
-    E0557, // feature has been removed
     E0584, // file for module `..` found at both .. and ..
     E0589, // invalid `repr(align)` attribute
 }