about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-11 07:21:54 +0000
committerbors <bors@rust-lang.org>2023-03-11 07:21:54 +0000
commit0f1f7b0840885fac83ff3f36053cb04833c1af5a (patch)
tree13d070bafb527926160cbdb47a22237471acd71f /compiler/rustc_codegen_gcc/tests/run/int_overflow.rs
parent9f3c3ffaf83f9226f81c200c7bf8a04e4e3d5715 (diff)
parent05f633bdaf11ca3485b7e9fd2af11e9a917af459 (diff)
downloadrust-0f1f7b0840885fac83ff3f36053cb04833c1af5a.tar.gz
rust-0f1f7b0840885fac83ff3f36053cb04833c1af5a.zip
Auto merge of #2808 - saethlin:rustup, r=oli-obk
Rustup
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)]