Skip to content

Commit 116bf07

Browse files
committed
extended information for E0557 feature has been removed
1 parent 93bc599 commit 116bf07

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/libsyntax/diagnostic_list.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,18 @@ If you need the feature, make sure to use a nightly release of the compiler
207207
(but be warned that the feature may be removed or altered in the future).
208208
"##,
209209

210+
E0557: r##"
211+
A feature attribute named a feature that has been removed.
212+
213+
Erroneous code example:
214+
215+
```compile_fail,E0557
216+
#![feature(managed_boxes)] // error: feature has been removed
217+
```
218+
219+
Delete the offending feature attribute.
220+
"##,
221+
210222
E0558: r##"
211223
The `export_name` attribute was malformed.
212224
@@ -347,7 +359,6 @@ register_diagnostics! {
347359
E0551, // incorrect meta item
348360
E0555, // malformed feature attribute, expected #![feature(...)]
349361
E0556, // malformed feature, expected just one word
350-
E0557, // feature has been removed
351362
E0584, // file for module `..` found at both .. and ..
352363
E0589, // invalid `repr(align)` attribute
353364
}

0 commit comments

Comments
 (0)