Skip to content

Commit 2c48aac

Browse files
committed
remove #[no_mangle] from panic handler
A recent change on rustc nightly broke panic handlers that also have the #[no_mangle] attribute. It looks like they don't consider this to be a bug. Let's just remove it.
1 parent ce5da20 commit 2c48aac

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ fn enable_write_protect_bit() {
370370
}
371371

372372
#[panic_handler]
373-
#[no_mangle]
374373
pub fn panic(info: &PanicInfo) -> ! {
375374
use core::fmt::Write;
376375
write!(printer::Printer, "{}", info).unwrap();

0 commit comments

Comments
 (0)