Skip to content

Commit ab01e29

Browse files
Noratriebtgross35
authored andcommitted
Remove cfg(bootstrap)
Foe the bootstrap bump
1 parent a4c748f commit ab01e29

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

compiler-builtins/src/macros.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -433,18 +433,6 @@ macro_rules! intrinsics {
433433
) => (
434434
// `#[naked]` definitions are referenced by other places, so we can't use `cfg` like the others
435435
pub mod $name {
436-
// FIXME: when bootstrap supports `#[unsafe(naked)]` this duplication can be removed
437-
#[cfg(bootstrap)]
438-
#[naked]
439-
#[allow(unused_unsafe)]
440-
$(#[$($attr)*])*
441-
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]
442-
#[cfg_attr(not(any(all(windows, target_env = "gnu"), target_os = "cygwin")), linkage = "weak")]
443-
pub unsafe extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
444-
unsafe { $($body)* }
445-
}
446-
447-
#[cfg(not(bootstrap))]
448436
#[unsafe(naked)]
449437
$(#[$($attr)*])*
450438
#[cfg_attr(not(feature = "mangled-names"), no_mangle)]

0 commit comments

Comments
 (0)