about summary refs log tree commit diff
path: root/library/core
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-22 14:12:55 +0100
committerRalf Jung <post@ralfj.de>2025-02-22 14:12:55 +0100
commitd1b34acb3bfa202704b5ab13e4b35eb569cf7d67 (patch)
tree85ade6ea4211df0474dde05c9c4fcdbb0c5995bb /library/core
parent04e7a10af68e6174e42e9ce4a6e81f97722a6032 (diff)
downloadrust-d1b34acb3bfa202704b5ab13e4b35eb569cf7d67.tar.gz
rust-d1b34acb3bfa202704b5ab13e4b35eb569cf7d67.zip
make the new intrinsics safe
Diffstat (limited to 'library/core')
-rw-r--r--library/core/src/intrinsics/mod.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs
index 320122a53e9..a52f2b20246 100644
--- a/library/core/src/intrinsics/mod.rs
+++ b/library/core/src/intrinsics/mod.rs
@@ -2748,13 +2748,13 @@ pub unsafe fn truncf128(_x: f128) -> f128 {
 #[rustc_intrinsic_must_be_overridden]
 #[rustc_nounwind]
 #[cfg(not(bootstrap))]
-pub unsafe fn round_ties_even_f16(_x: f16) -> f16 {
+pub fn round_ties_even_f16(_x: f16) -> f16 {
     unreachable!()
 }
 
 /// To be removed on next bootstrap bump.
 #[cfg(bootstrap)]
-pub unsafe fn round_ties_even_f16(x: f16) -> f16 {
+pub fn round_ties_even_f16(x: f16) -> f16 {
     #[rustc_intrinsic]
     #[rustc_intrinsic_must_be_overridden]
     #[rustc_nounwind]
@@ -2775,13 +2775,13 @@ pub unsafe fn round_ties_even_f16(x: f16) -> f16 {
 #[rustc_intrinsic_must_be_overridden]
 #[rustc_nounwind]
 #[cfg(not(bootstrap))]
-pub unsafe fn round_ties_even_f32(_x: f32) -> f32 {
+pub fn round_ties_even_f32(_x: f32) -> f32 {
     unreachable!()
 }
 
 /// To be removed on next bootstrap bump.
 #[cfg(bootstrap)]
-pub unsafe fn round_ties_even_f32(x: f32) -> f32 {
+pub fn round_ties_even_f32(x: f32) -> f32 {
     #[rustc_intrinsic]
     #[rustc_intrinsic_must_be_overridden]
     #[rustc_nounwind]
@@ -2802,13 +2802,13 @@ pub unsafe fn round_ties_even_f32(x: f32) -> f32 {
 #[rustc_intrinsic_must_be_overridden]
 #[rustc_nounwind]
 #[cfg(not(bootstrap))]
-pub unsafe fn round_ties_even_f64(_x: f64) -> f64 {
+pub fn round_ties_even_f64(_x: f64) -> f64 {
     unreachable!()
 }
 
 /// To be removed on next bootstrap bump.
 #[cfg(bootstrap)]
-pub unsafe fn round_ties_even_f64(x: f64) -> f64 {
+pub fn round_ties_even_f64(x: f64) -> f64 {
     #[rustc_intrinsic]
     #[rustc_intrinsic_must_be_overridden]
     #[rustc_nounwind]
@@ -2829,13 +2829,13 @@ pub unsafe fn round_ties_even_f64(x: f64) -> f64 {
 #[rustc_intrinsic_must_be_overridden]
 #[rustc_nounwind]
 #[cfg(not(bootstrap))]
-pub unsafe fn round_ties_even_f128(_x: f128) -> f128 {
+pub fn round_ties_even_f128(_x: f128) -> f128 {
     unreachable!()
 }
 
 /// To be removed on next bootstrap bump.
 #[cfg(bootstrap)]
-pub unsafe fn round_ties_even_f128(x: f128) -> f128 {
+pub fn round_ties_even_f128(x: f128) -> f128 {
     #[rustc_intrinsic]
     #[rustc_intrinsic_must_be_overridden]
     #[rustc_nounwind]