about summary refs log tree commit diff
path: root/library/std/src/f32.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-01 08:09:31 +0000
committerbors <bors@rust-lang.org>2024-08-01 08:09:31 +0000
commit97ac52f579fe1003a162324d448dad43a942b5f5 (patch)
treef8cc6294bb554f1fc41fb47a452923b517f6e6f7 /library/std/src/f32.rs
parent70591dc15db32941fe3595fdbf98e58d6975f95e (diff)
parentff1476ca20d1c5e1dbbba39820fc6a12cb71a959 (diff)
downloadrust-97ac52f579fe1003a162324d448dad43a942b5f5.tar.gz
rust-97ac52f579fe1003a162324d448dad43a942b5f5.zip
Auto merge of #128481 - matthiaskrgr:rollup-efa706r, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - #128416 (android: Remove libstd hacks for unsupported Android APIs)
 - #128437 (improve bootstrap to allow selecting llvm tools individually)
 - #128450 (Create COFF archives for non-LLVM backends)
 - #128458 (Emit an error if `#[optimize]` is applied to an incompatible item)
 - #128477 (Finish blessing `coverage/mcdc` tests after LLVM 19 upgrade)
 - #128478 (Ignore `use` declaration reformatting in `.git-blame-ignore-revs`.)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src/f32.rs')
-rw-r--r--library/std/src/f32.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/f32.rs b/library/std/src/f32.rs
index b3afeca1ed8..12433d25bfa 100644
--- a/library/std/src/f32.rs
+++ b/library/std/src/f32.rs
@@ -574,7 +574,7 @@ impl f32 {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline]
     pub fn log2(self) -> f32 {
-        crate::sys::log2f32(self)
+        unsafe { intrinsics::log2f32(self) }
     }
 
     /// Returns the base 10 logarithm of the number.