fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.5 KiB30 linesraw
1error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead
2  --> $DIR/feature-gate-link_args.rs:12:1
3   |
4LL | #[link_args = "-l expected_use_case"]
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #29596 <https://github.com/rust-lang/rust/issues/29596> for more information
8   = help: add `#![feature(link_args)]` to the crate attributes to enable
9
10error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead
11  --> $DIR/feature-gate-link_args.rs:16:1
12   |
13LL | #[link_args = "-l unexected_use_on_non_extern_item"]
14   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: see issue #29596 <https://github.com/rust-lang/rust/issues/29596> for more information
17   = help: add `#![feature(link_args)]` to the crate attributes to enable
18
19error[E0658]: the `link_args` attribute is experimental and not portable across platforms, it is recommended to use `#[link(name = "foo")] instead
20  --> $DIR/feature-gate-link_args.rs:9:1
21   |
22LL | #![link_args = "-l unexpected_use_as_inner_attr_on_mod"]
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = note: see issue #29596 <https://github.com/rust-lang/rust/issues/29596> for more information
26   = help: add `#![feature(link_args)]` to the crate attributes to enable
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0658`.