File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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]
3836fn 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).
You can’t perform that action at this time.
0 commit comments