Skip to content

Commit b21854c

Browse files
authored
Updates for stable Rust (#3)
1 parent 588e468 commit b21854c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

rls.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![feature(core_intrinsics)]
2-
#![feature(global_asm)]
32
#![feature(lang_items)]
4-
#![feature(llvm_asm)]
53
#![warn(rust_2018_idioms)]
64
#![allow(unused_attributes)]
75
#![no_std]
@@ -36,11 +34,8 @@ impl Termination for () {}
3634
#[cfg_attr(not(test), panic_handler)]
3735
#[no_mangle]
3836
fn panic(_info: &PanicInfo<'_>) -> ! {
39-
loop {
40-
// A loop without side effects may be optimized away by LLVM. This issue can be avoided with
41-
// a volatile no-op. See: https://github.com/rust-lang/rust/issues/28728
42-
unsafe { llvm_asm!("" :::: "volatile") };
43-
}
37+
#[allow(clippy::empty_loop)]
38+
loop {}
4439
}
4540

4641
/// Error handler personality language item (current no-op, to satisfy clippy).

0 commit comments

Comments
 (0)