Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5b7641f

Browse files
committedNov 7, 2024
remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic functions instead
1 parent 8549802 commit 5b7641f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+378
-346
lines changed
 

‎compiler/rustc_codegen_gcc/tests/run/slice.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ fn panic_bounds_check(index: usize, len: usize) -> ! {
103103
mod intrinsics {
104104
use super::Sized;
105105

106-
extern "rust-intrinsic" {
107-
#[rustc_safe_intrinsic]
108-
pub fn abort() -> !;
106+
#[rustc_nounwind]
107+
#[rustc_intrinsic]
108+
#[rustc_intrinsic_must_be_overridden]
109+
pub fn abort() -> ! {
110+
loop {}
109111
}
110112
}
111113

‎compiler/rustc_codegen_gcc/tests/run/static.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ pub(crate) unsafe auto trait Freeze {}
4646
mod intrinsics {
4747
use super::Sized;
4848

49-
extern "rust-intrinsic" {
50-
#[rustc_safe_intrinsic]
51-
pub fn abort() -> !;
49+
#[rustc_nounwind]
50+
#[rustc_intrinsic]
51+
#[rustc_intrinsic_must_be_overridden]
52+
pub fn abort() -> ! {
53+
loop {}
5254
}
5355
}
5456

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.