Remove cfg(bootstrap)
Foe the bootstrap bump
This commit is contained in:
parent
1768cb1731
commit
c4c7f25c4c
1 changed files with 0 additions and 12 deletions
|
|
@ -433,18 +433,6 @@ macro_rules! intrinsics {
|
|||
) => (
|
||||
// `#[naked]` definitions are referenced by other places, so we can't use `cfg` like the others
|
||||
pub mod $name {
|
||||
// FIXME: when bootstrap supports `#[unsafe(naked)]` this duplication can be removed
|
||||
#[cfg(bootstrap)]
|
||||
#[naked]
|
||||
#[allow(unused_unsafe)]
|
||||
$(#[$($attr)*])*
|
||||
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
|
||||
#[cfg_attr(not(any(all(windows, target_env = "gnu"), target_os = "cygwin")), linkage = "weak")]
|
||||
pub unsafe extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
|
||||
unsafe { $($body)* }
|
||||
}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[unsafe(naked)]
|
||||
$(#[$($attr)*])*
|
||||
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue