mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-21 01:26:35 +00:00
Fixes the following warning: "warning: the feature `panic_handler` has been stable since 1.30.0 and no longer requires an attribute to enable"
12 lines
185 B
Rust
12 lines
185 B
Rust
// Hack of a crate until rust-lang/rust#51647 is fixed
|
|
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
|
|
extern crate core;
|
|
|
|
#[panic_handler]
|
|
fn panic(_: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|