|
1 |
| -error[E0539]: malformed `link` attribute input |
| 1 | +error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", wasm_import_module = "...")]` |
2 | 2 | --> $DIR/link-dl.rs:14:1
|
3 | 3 | |
|
4 | 4 | LL | #[link="dl"]
|
5 |
| - | ^^^^^^^^^^^^ expected this to be a list |
| 5 | + | ^^^^^^^^^^^^ |
6 | 6 | |
|
7 |
| - = note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute> |
8 |
| -help: try changing it to one of the following valid forms of the attribute |
9 |
| - | |
10 |
| -LL - #[link="dl"] |
11 |
| -LL + #[link(name = "...")] |
12 |
| - | |
13 |
| -LL - #[link="dl"] |
14 |
| -LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")] |
15 |
| - | |
16 |
| -LL - #[link="dl"] |
17 |
| -LL + #[link(name = "...", kind = "dylib|static|...")] |
18 |
| - | |
19 |
| -LL - #[link="dl"] |
20 |
| -LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")] |
21 |
| - | |
22 |
| - = and 1 other candidate |
| 7 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 8 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 9 | + = note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default |
23 | 10 |
|
24 | 11 | error: aborting due to 1 previous error
|
25 | 12 |
|
26 |
| -For more information about this error, try `rustc --explain E0539`. |
| 13 | +Future incompatibility report: Future breakage diagnostic: |
| 14 | +error: valid forms for the attribute are `#[link(name = "...")]`, `#[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]`, `#[link(name = "...", kind = "dylib|static|...")]`, `#[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]`, and `#[link(name = "...", wasm_import_module = "...")]` |
| 15 | + --> $DIR/link-dl.rs:14:1 |
| 16 | + | |
| 17 | +LL | #[link="dl"] |
| 18 | + | ^^^^^^^^^^^^ |
| 19 | + | |
| 20 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 21 | + = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> |
| 22 | + = note: `#[deny(ill_formed_attribute_input)]` (part of `#[deny(future_incompatible)]`) on by default |
| 23 | + |
0 commit comments