609ffa1a89
- Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error - Use consistend error message: "malformed `attrname` attribute input" - Provide suggestions when possible - Move note/help to label/suggestion - Use consistent wording "ill-formed" -> "malformed" - Move diagnostic logic out of parser
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
error[E0556]: malformed `feature` attribute input
|
|
--> $DIR/gated-bad-feature.rs:1:25
|
|
|
|
|
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
|
|
| ^^^^^^^^ help: expected just one word: `foo`
|
|
|
|
error[E0556]: malformed `feature` attribute input
|
|
--> $DIR/gated-bad-feature.rs:1:35
|
|
|
|
|
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
|
|
| ^^^^^^^^^^^ help: expected just one word: `foo`
|
|
|
|
error[E0557]: feature has been removed
|
|
--> $DIR/gated-bad-feature.rs:8:12
|
|
|
|
|
LL | #![feature(test_removed_feature)]
|
|
| ^^^^^^^^^^^^^^^^^^^^ feature has been removed
|
|
|
|
error: malformed `feature` attribute input
|
|
--> $DIR/gated-bad-feature.rs:5:1
|
|
|
|
|
LL | #![feature]
|
|
| ^^^^^^^^^^^ help: must be of the form: `#[feature(name1, name1, ...)]`
|
|
|
|
error: malformed `feature` attribute input
|
|
--> $DIR/gated-bad-feature.rs:6:1
|
|
|
|
|
LL | #![feature = "foo"]
|
|
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[feature(name1, name1, ...)]`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0557`.
|