From 448fe0e8cf90d84022cf4f19be67becb76837a8a Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 15 Jul 2021 15:59:46 +0800 Subject: [PATCH] bootloader: fix panic Signed-off-by: occheung --- artiq/firmware/bootloader/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/firmware/bootloader/main.rs b/artiq/firmware/bootloader/main.rs index daa3a9be7..865293840 100644 --- a/artiq/firmware/bootloader/main.rs +++ b/artiq/firmware/bootloader/main.rs @@ -1,5 +1,5 @@ #![no_std] -#![feature(panic_implementation, panic_info_message)] +#![feature(panic_info_message)] extern crate crc; extern crate byteorder; @@ -532,7 +532,7 @@ pub extern fn abort() { } #[no_mangle] // https://github.com/rust-lang/rust/issues/{38281,51647} -#[panic_implementation] +#[panic_handler] pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! { #[cfg(has_error_led)] unsafe {