mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
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,4 +1,4 @@
|
|||
use super::{ReentrantLock, ReentrantLockGuard};
|
||||
use super::ReentrantLock;
|
||||
use crate::cell::RefCell;
|
||||
use crate::sync::Arc;
|
||||
use crate::thread;
|
||||
|
@ -51,10 +51,3 @@ fn trylock_works() {
|
|||
.unwrap();
|
||||
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…
Reference in a new issue