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
21 lines
510 B
Plaintext
21 lines
510 B
Plaintext
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:1:1
|
|
|
|
|
LL | #[repr]
|
|
| ^^^^^^^ help: must be of the form: `#[repr(C, packed, ...)]`
|
|
|
|
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:4:1
|
|
|
|
|
LL | #[repr = "B"]
|
|
| ^^^^^^^^^^^^^ help: must be of the form: `#[repr(C, packed, ...)]`
|
|
|
|
error: malformed `repr` attribute input
|
|
--> $DIR/repr.rs:7:1
|
|
|
|
|
LL | #[repr = "C"]
|
|
| ^^^^^^^^^^^^^ help: must be of the form: `#[repr(C, packed, ...)]`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|