Remove ReentrantMutex
This drops the parking_lot dependency; the ReentrantMutex type appeared to be unused (at least, no compilation failures occurred). This is technically a possible change in behavior of its users, as lock() would wait on other threads releasing their guards, but since we didn't actually remove any threading or such in this code, it appears that we never used that behavior (the behavior change is only noticeable if the type previously was used in two threads, in a single thread ReentrantMutex is useless).
This commit is contained in:
parent
8f80a8d7d5
commit
c57481001e
7 changed files with 9 additions and 16 deletions
|
@ -45,8 +45,6 @@ use std::cell::RefCell;
|
|||
use std::sync::Arc;
|
||||
use std::u32;
|
||||
|
||||
use parking_lot::ReentrantMutex;
|
||||
|
||||
use crate::core::{self, DocContext};
|
||||
use crate::doctree;
|
||||
use crate::html::render::{cache, ExternalLocation};
|
||||
|
@ -133,7 +131,7 @@ pub struct Crate {
|
|||
pub primitives: Vec<(DefId, PrimitiveType, Attributes)>,
|
||||
// These are later on moved into `CACHEKEY`, leaving the map empty.
|
||||
// Only here so that they can be filtered through the rustdoc passes.
|
||||
pub external_traits: Arc<ReentrantMutex<RefCell<FxHashMap<DefId, Trait>>>>,
|
||||
pub external_traits: Arc<RefCell<FxHashMap<DefId, Trait>>>,
|
||||
pub masked_crates: FxHashSet<CrateNum>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue