This means we now require rust 1.30 for the build.
#![no_std]
#![crate_name="common"]
#![crate_type="rlib"]
-#![feature(lang_items)]
pub mod register;
pub mod nvic;
pub mod clock;
pub mod usb_serial;
-#[lang="eh_personality"]
-extern fn eh_personality() {
-}
+use core::panic::PanicInfo;
-#[lang="panic_fmt"]
-#[no_mangle]
-pub fn rust_begin_unwind(_fmt: &core::fmt::Arguments, _file_line: &(&'static str, usize)) -> ! {
+#[inline(never)]
+#[panic_handler]
+fn panic(_info: &PanicInfo) -> ! {
loop {
}
}