diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-05 00:24:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 00:24:33 +0200 |
| commit | 44e3ccb6dc08ca26efd980fc79d011ff1fcb2f94 (patch) | |
| tree | 29af0cc0687c69cb155a4abc1b7eda0fcd4141fd | |
| parent | 2ca5368628e72ef1e53bae29315e2ad368558f0d (diff) | |
| parent | c7264483e76d5d7dbc2448c1d3e188ce741f4718 (diff) | |
| download | rust-44e3ccb6dc08ca26efd980fc79d011ff1fcb2f94.tar.gz rust-44e3ccb6dc08ca26efd980fc79d011ff1fcb2f94.zip | |
Rollup merge of #83820 - petrochenkov:nolinkargs, r=nagisa
Remove attribute `#[link_args]` Closes https://github.com/rust-lang/rust/issues/29596 The attribute could always be replaced with `-C link-arg`, but cargo didn't provide a reasonable way to pass such flags to rustc. Now cargo supports `cargo:rustc-link-arg*` directives in build scripts (https://doc.rust-lang.org/cargo/reference/unstable.html#extra-link-arg), so this attribute can be removed.
| -rw-r--r-- | tests/ui/crate_level_checks/no_std_main_recursion.rs | 4 | ||||
| -rw-r--r-- | tests/ui/empty_loop_no_std.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/crate_level_checks/no_std_main_recursion.rs b/tests/ui/crate_level_checks/no_std_main_recursion.rs index 25b1417be97..be4348e2bb7 100644 --- a/tests/ui/crate_level_checks/no_std_main_recursion.rs +++ b/tests/ui/crate_level_checks/no_std_main_recursion.rs @@ -1,8 +1,8 @@ +// compile-flags: -Clink-arg=-nostartfiles // ignore-macos // ignore-windows -#![feature(lang_items, link_args, start, libc)] -#![link_args = "-nostartfiles"] +#![feature(lang_items, start, libc)] #![no_std] use core::panic::PanicInfo; diff --git a/tests/ui/empty_loop_no_std.rs b/tests/ui/empty_loop_no_std.rs index 4553d3ec505..235e0fc5179 100644 --- a/tests/ui/empty_loop_no_std.rs +++ b/tests/ui/empty_loop_no_std.rs @@ -1,9 +1,9 @@ +// compile-flags: -Clink-arg=-nostartfiles // ignore-macos // ignore-windows #![warn(clippy::empty_loop)] -#![feature(lang_items, link_args, start, libc)] -#![link_args = "-nostartfiles"] +#![feature(lang_items, start, libc)] #![no_std] use core::panic::PanicInfo; |
