mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
3807634a47
We also update the documentation to note that the remediations are different for `std` and `no_std` crates. Signed-off-by: Joe Richey <joerichey@google.com>
22 lines
393 B
Rust
22 lines
393 B
Rust
// ignore-macos
|
|
// ignore-windows
|
|
|
|
#![warn(clippy::empty_loop)]
|
|
#![feature(lang_items, link_args, start, libc)]
|
|
#![link_args = "-nostartfiles"]
|
|
#![no_std]
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
#[start]
|
|
fn main(argc: isize, argv: *const *const u8) -> isize {
|
|
loop {}
|
|
}
|
|
|
|
#[panic_handler]
|
|
fn panic(_info: &PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[lang = "eh_personality"]
|
|
extern "C" fn eh_personality() {}
|