Port #[marker] to the new attribute system
This commit is contained in:
parent
a57a885abc
commit
12f6487d79
9 changed files with 47 additions and 21 deletions
|
|
@ -116,12 +116,6 @@ error: malformed `cfi_encoding` attribute input
|
|||
LL | #[cfi_encoding]
|
||||
| ^^^^^^^^^^^^^^^ help: must be of the form: `#[cfi_encoding = "encoding"]`
|
||||
|
||||
error: malformed `marker` attribute input
|
||||
--> $DIR/malformed-attrs.rs:155:1
|
||||
|
|
||||
LL | #[marker = 3]
|
||||
| ^^^^^^^^^^^^^ help: must be of the form: `#[marker]`
|
||||
|
||||
error: malformed `fundamental` attribute input
|
||||
--> $DIR/malformed-attrs.rs:157:1
|
||||
|
|
||||
|
|
@ -522,6 +516,15 @@ LL | #[rustc_layout_scalar_valid_range_end]
|
|||
| expected this to be a list
|
||||
| help: must be of the form: `#[rustc_layout_scalar_valid_range_end(end)]`
|
||||
|
||||
error[E0565]: malformed `marker` attribute input
|
||||
--> $DIR/malformed-attrs.rs:155:1
|
||||
|
|
||||
LL | #[marker = 3]
|
||||
| ^^^^^^^^^---^
|
||||
| | |
|
||||
| | didn't expect any arguments here
|
||||
| help: must be of the form: `#[marker]`
|
||||
|
||||
error[E0565]: malformed `ffi_pure` attribute input
|
||||
--> $DIR/malformed-attrs.rs:165:5
|
||||
|
|
||||
|
|
|
|||
|
|
@ -1,20 +1,30 @@
|
|||
error: malformed `marker` attribute input
|
||||
error[E0565]: malformed `marker` attribute input
|
||||
--> $DIR/marker-attribute-with-values.rs:3:1
|
||||
|
|
||||
LL | #[marker(always)]
|
||||
| ^^^^^^^^^^^^^^^^^ help: must be of the form: `#[marker]`
|
||||
| ^^^^^^^^--------^
|
||||
| | |
|
||||
| | didn't expect any arguments here
|
||||
| help: must be of the form: `#[marker]`
|
||||
|
||||
error: malformed `marker` attribute input
|
||||
error[E0565]: malformed `marker` attribute input
|
||||
--> $DIR/marker-attribute-with-values.rs:6:1
|
||||
|
|
||||
LL | #[marker("never")]
|
||||
| ^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[marker]`
|
||||
| ^^^^^^^^---------^
|
||||
| | |
|
||||
| | didn't expect any arguments here
|
||||
| help: must be of the form: `#[marker]`
|
||||
|
||||
error: malformed `marker` attribute input
|
||||
error[E0565]: malformed `marker` attribute input
|
||||
--> $DIR/marker-attribute-with-values.rs:9:1
|
||||
|
|
||||
LL | #[marker(key = "value")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[marker]`
|
||||
| ^^^^^^^^---------------^
|
||||
| | |
|
||||
| | didn't expect any arguments here
|
||||
| help: must be of the form: `#[marker]`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0565`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue