Make untracked.source_span lockable so that resolution can still write to it when using TyCtxt
This commit is contained in:
parent
ade3dceb38
commit
6924e3c374
6 changed files with 12 additions and 12 deletions
|
@ -256,6 +256,6 @@ pub type CrateStoreDyn = dyn CrateStore + sync::Sync + sync::Send;
|
|||
pub struct Untracked {
|
||||
pub cstore: RwLock<Box<CrateStoreDyn>>,
|
||||
/// Reference span for definitions.
|
||||
pub source_span: IndexVec<LocalDefId, Span>,
|
||||
pub source_span: RwLock<IndexVec<LocalDefId, Span>>,
|
||||
pub definitions: RwLock<Definitions>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue