Skip to content

Commit a7f0c6c

Browse files
committed
remove unsafe from _mm_pause uses
1 parent b826104 commit a7f0c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/hint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,11 @@ pub fn spin_loop() {
271271
crate::cfg_select! {
272272
target_arch = "x86" => {
273273
// SAFETY: the `cfg` attr ensures that we only execute this on x86 targets.
274-
unsafe { crate::arch::x86::_mm_pause() }
274+
crate::arch::x86::_mm_pause()
275275
}
276276
target_arch = "x86_64" => {
277277
// SAFETY: the `cfg` attr ensures that we only execute this on x86_64 targets.
278-
unsafe { crate::arch::x86_64::_mm_pause() }
278+
crate::arch::x86_64::_mm_pause()
279279
}
280280
target_arch = "riscv32" => crate::arch::riscv32::pause(),
281281
target_arch = "riscv64" => crate::arch::riscv64::pause(),

0 commit comments

Comments
 (0)