Skip to content

Commit

Permalink
Unrolled build for rust-lang#124266
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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 45aa6c8 together with a test related to poisoning; when the test got removed, it seems like it was forgotten to also remove this type.
  • Loading branch information
rust-timer authored Apr 23, 2024
2 parents a77f76e + df437a2 commit 0cc3a35
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions library/std/src/sync/reentrant_lock/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{ReentrantLock, ReentrantLockGuard};
use super::ReentrantLock;
use crate::cell::RefCell;
use crate::sync::Arc;
use crate::thread;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 0cc3a35

Please sign in to comment.