Skip to content

Commit 11b6c6a

Browse files
bjorn3gitbot
authored and
gitbot
committed
Fix for SGX
1 parent 334c705 commit 11b6c6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/tests/sync/once_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn sync_once_cell_does_not_leak_partially_constructed_boxes() {
164164
break;
165165
}
166166
#[cfg(target_env = "sgx")]
167-
crate::thread::yield_now();
167+
std::thread::yield_now();
168168
}
169169
});
170170
}

0 commit comments

Comments
 (0)