Skip to content

Commit

Permalink
feat: remove usage of nightly linkage feature
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Dec 1, 2023
1 parent 371c6fe commit c11c909
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions rftrace/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ static mut TID: Option<core::num::NonZeroU64> = None;
// Everytime we see a new thread (with emtpy thread-locals), we alloc out own TID
static mut TID_NEXT: AtomicU64 = AtomicU64::new(1);

// Need to define own panic handler, since we are no_std
use core::panic::PanicInfo;
#[linkage = "weak"]
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}

Expand Down
1 change: 0 additions & 1 deletion rftrace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![cfg_attr(feature = "staticlib", feature(naked_functions))]
#![cfg_attr(feature = "staticlib", feature(llvm_asm))]
#![cfg_attr(feature = "staticlib", feature(thread_local))]
#![cfg_attr(feature = "staticlib", feature(linkage))]
#![cfg_attr(feature = "staticlib", no_std)]

mod interface;
Expand Down

0 comments on commit c11c909

Please sign in to comment.