Skip to content

Commit 34e6386

Browse files
Fix compilation errors in rustc_codegen_gcc examples
1 parent 249969c commit 34e6386

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: example/alloc_example.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern "C" {
1818
}
1919

2020
#[panic_handler]
21-
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
21+
fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
2222
core::intrinsics::abort();
2323
}
2424

Diff for: example/mod_bench.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
extern {}
77

88
#[panic_handler]
9-
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
9+
fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
1010
core::intrinsics::abort();
1111
}
1212

0 commit comments

Comments
 (0)