about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-07 19:57:45 +0100
committerGitHub <noreply@github.com>2023-03-07 19:57:45 +0100
commitc21a640c5a31d64a276cbb76e9e358623ec0ad17 (patch)
tree85da5a3b9a5b48f906bf78c4bd40f7a40072f4ff /compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
parent63635880f6fe27fc291c7542bc7df03018f694bb (diff)
parent2c0c25dcc1598cd115838e1e1d74d9f32ffd8dbf (diff)
downloadrust-c21a640c5a31d64a276cbb76e9e358623ec0ad17.tar.gz
rust-c21a640c5a31d64a276cbb76e9e358623ec0ad17.zip
Rollup merge of #108783 - antoyo:sync-cg_gcc-2023-03-04, r=cjgillot
Sync rustc_codegen_gcc 2023/03/04

Hi.
This sync all the changes from rustc_codegen_gcc.
Thanks for the review.
Diffstat (limited to 'compiler/rustc_codegen_gcc/tests/run/int_overflow.rs')
-rw-r--r--compiler/rustc_codegen_gcc/tests/run/int_overflow.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs b/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
index ea2c5add962..c3fcb3c0a2a 100644
--- a/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
+++ b/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
@@ -55,6 +55,7 @@ mod libc {
 
 mod intrinsics {
     extern "rust-intrinsic" {
+        #[rustc_safe_intrinsic]
         pub fn abort() -> !;
     }
 }
@@ -62,7 +63,7 @@ mod intrinsics {
 #[lang = "panic"]
 #[track_caller]
 #[no_mangle]
-pub fn panic(_msg: &str) -> ! {
+pub fn panic(_msg: &'static str) -> ! {
     unsafe {
         // Panicking is expected iff overflow checking is enabled.
         #[cfg(debug_assertions)]