]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys_common/condvar/check.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / library / std / src / sys_common / condvar / check.rs
index d0d0d59651895c9fa1af49daffc646790da7f057..ce8f36704877fe390558863f5821fc40fcd3c60b 100644 (file)
@@ -1,6 +1,7 @@
 use crate::ptr;
 use crate::sync::atomic::{AtomicPtr, Ordering};
 use crate::sys::locks as imp;
+use crate::sys_common::lazy_box::{LazyBox, LazyInit};
 use crate::sys_common::mutex::MovableMutex;
 
 pub trait CondvarCheck {
@@ -9,7 +10,7 @@ pub trait CondvarCheck {
 
 /// For boxed mutexes, a `Condvar` will check it's only ever used with the same
 /// mutex, based on its (stable) address.
-impl CondvarCheck for Box<imp::Mutex> {
+impl<T: LazyInit> CondvarCheck for LazyBox<T> {
     type Check = SameMutexCheck;
 }