Fix compilation errors in rustc_codegen_gcc examples

This commit is contained in:
Guillaume Gomez 2023-10-28 12:31:05 +02:00
parent 42bdc873e5
commit ded81de066
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ extern "C" {
} }
#[panic_handler] #[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! { fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
core::intrinsics::abort(); core::intrinsics::abort();
} }

View File

@ -6,7 +6,7 @@
extern {} extern {}
#[panic_handler] #[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! { fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
core::intrinsics::abort(); core::intrinsics::abort();
} }