panic-halt 0.1.0

Set panicking behavior to halt
//! Set the panicking behavior to halt
//!
//! This crate contains an implementation of `panic_fmt` that simply halt in an infinite loop.
//!
//! # Usage
//!
//! ``` ignore
//! #![no_std]
//!
//! extern crate panic_halt;
//!
//! fn main() {
//!     panic!("argument is ignored");
//! }
//! ```

#![deny(missing_docs)]
#![deny(warnings)]
#![feature(core_intrinsics)]
#![feature(panic_implementation)]
#![no_std]

use core::panic::PanicInfo;
use core::ptr;

#[panic_implementation]
fn panic(info: &PanicInfo) -> ! {
    loop {
        unsafe {
            ptr::read_volatile(&info);
        }
    }
}