about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-10-28 12:31:05 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-11-02 21:03:27 +0100
commitded81de06641eb6188b58856f7d8980a99231a00 (patch)
treea245a558613c4cba807172bf40b33cf47a132a7c
parent42bdc873e5c7b5cb8bb07c31f9ba85b66f37350b (diff)
downloadrust-ded81de06641eb6188b58856f7d8980a99231a00.tar.gz
rust-ded81de06641eb6188b58856f7d8980a99231a00.zip
Fix compilation errors in rustc_codegen_gcc examples
-rw-r--r--compiler/rustc_codegen_gcc/example/alloc_example.rs2
-rw-r--r--compiler/rustc_codegen_gcc/example/mod_bench.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/example/alloc_example.rs b/compiler/rustc_codegen_gcc/example/alloc_example.rs
index f1954a30cf8..6ed8b9157f2 100644
--- a/compiler/rustc_codegen_gcc/example/alloc_example.rs
+++ b/compiler/rustc_codegen_gcc/example/alloc_example.rs
@@ -18,7 +18,7 @@ extern "C" {
 }
 
 #[panic_handler]
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
     core::intrinsics::abort();
 }
 
diff --git a/compiler/rustc_codegen_gcc/example/mod_bench.rs b/compiler/rustc_codegen_gcc/example/mod_bench.rs
index c60bc7fb724..cae911c1073 100644
--- a/compiler/rustc_codegen_gcc/example/mod_bench.rs
+++ b/compiler/rustc_codegen_gcc/example/mod_bench.rs
@@ -6,7 +6,7 @@
 extern {}
 
 #[panic_handler]
-fn panic_handler(_: &core::panic::PanicInfo) -> ! {
+fn panic_handler(_: &core::panic::PanicInfo<'_>) -> ! {
     core::intrinsics::abort();
 }