Rollup merge of #124266 - RalfJung:no-answer, r=joboet
remove an unused type from the reentrant lock tests
At least it seems unused. This was added back in 45aa6c8d1b
together with a test related to poisoning; when the test got removed, it seems like it was forgotten to also remove this type.
This commit is contained in:
commit
819b4d5e5b
1 changed files with 1 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
use super::{ReentrantLock, ReentrantLockGuard};
|
use super::ReentrantLock;
|
||||||
use crate::cell::RefCell;
|
use crate::cell::RefCell;
|
||||||
use crate::sync::Arc;
|
use crate::sync::Arc;
|
||||||
use crate::thread;
|
use crate::thread;
|
||||||
|
@ -51,10 +51,3 @@ fn trylock_works() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let _lock3 = l.try_lock();
|
let _lock3 = l.try_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Answer<'a>(pub ReentrantLockGuard<'a, RefCell<u32>>);
|
|
||||||
impl Drop for Answer<'_> {
|
|
||||||
fn drop(&mut self) {
|
|
||||||
*self.0.borrow_mut() = 42;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue