We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RwLock::clone_guard
1 parent eeb5b78 commit 0ccb600Copy full SHA for 0ccb600
compiler/rustc_data_structures/src/sync.rs
@@ -578,18 +578,6 @@ impl<T> RwLock<T> {
578
self.write()
579
}
580
581
- #[cfg(not(parallel_compiler))]
582
- #[inline(always)]
583
- pub fn clone_guard<'a>(rg: &ReadGuard<'a, T>) -> ReadGuard<'a, T> {
584
- ReadGuard::clone(rg)
585
- }
586
-
587
- #[cfg(parallel_compiler)]
588
589
590
- ReadGuard::rwlock(&rg).read()
591
592
593
#[cfg(not(parallel_compiler))]
594
#[inline(always)]
595
pub fn leak(&self) -> &T {
0 commit comments