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
11 lines
313 B
Rust
11 lines
313 B
Rust
#![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
|
|
//~^ ERROR malformed `feature`
|
|
//~| ERROR malformed `feature`
|
|
|
|
#![feature] //~ ERROR malformed `feature` attribute
|
|
#![feature = "foo"] //~ ERROR malformed `feature` attribute
|
|
|
|
#![feature(test_removed_feature)] //~ ERROR: feature has been removed
|
|
|
|
fn main() {}
|