Skip to content

Commit c26fb59

Browse files
committed
also test std::hint::spin_loop
1 parent 2b591b8 commit c26fb59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run-pass/sync.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#![feature(rustc_private)]
1+
#![feature(rustc_private, renamed_spin_loop)]
22

33
use std::sync::{Mutex, TryLockError};
44
use std::sync::atomic;
5+
use std::hint;
56

67
fn main() {
78
test_mutex_stdlib();
@@ -56,6 +57,7 @@ impl<T> TryLockErrorExt<T> for TryLockError<T> {
5657

5758
fn test_spin_loop_hint() {
5859
atomic::spin_loop_hint();
60+
hint::spin_loop();
5961
}
6062

6163
fn test_thread_yield_now() {

0 commit comments

Comments
 (0)