mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
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.
This commit is contained in:
commit
44e3ccb6dc
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user