about summary refs log tree commit diff
path: root/library/compiler-builtins/crates/panic-handler/src/lib.rs
blob: 673e005224bd0ba572deb6185eeac4c57ba697c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! This is needed for tests on targets that require a `#[panic_handler]` function

#![feature(no_core)]
#![no_core]

extern crate core;

#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
    loop {}
}