Skip to content

Commit

Permalink
Remove unneeded cfg_attrs.
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Zellweger <[email protected]>
  • Loading branch information
gz committed Jun 9, 2018
1 parent 765768d commit 8be1fe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/no_std_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ fn main() {
}

#[cfg(feature = "nightly")]
#[cfg_attr(feature = "nightly", lang = "eh_personality")]
#[lang = "eh_personality"]
#[no_mangle]
pub extern "C" fn rust_eh_personality() {}

#[cfg(feature = "nightly")]
#[cfg_attr(feature = "nightly", lang = "eh_unwind_resume")]
#[lang = "eh_unwind_resume"]
#[no_mangle]
pub extern "C" fn rust_eh_unwind_resume() {}

#[cfg(feature = "nightly")]
#[cfg_attr(feature = "nightly", panic_implementation)]
#[panic_implementation]
fn panic_impl(_info: &PanicInfo) -> ! {
loop {}
}

0 comments on commit 8be1fe9

Please sign in to comment.