Make rust-intrinsic ABI unwindable

Stick `#[rustc_nounwind]` to all except `const_eval_select` to undo the
change for all other intrinsics.
This commit is contained in:
Gary Guo
2023-04-12 13:57:12 +01:00
parent 9be9b5e09a
commit 229b0a0fdc
4 changed files with 236 additions and 3 deletions

View File

@@ -1371,6 +1371,7 @@ pub const unsafe fn write<T>(dst: *mut T, src: T) {
// as `intrinsics::copy_nonoverlapping` is a wrapper function.
extern "rust-intrinsic" {
#[rustc_const_stable(feature = "const_intrinsic_copy", since = "1.63.0")]
#[rustc_nounwind]
fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize);
}