From 79cc5099b1825dae5507e74a09b6f6eb913667c8 Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Thu, 29 Oct 2020 00:00:00 +0000 Subject: Use RwLock instead of Lock for SourceMap::files --- compiler/rustc_data_structures/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_data_structures/src') diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index d22f3adfb01..26706cd2b1b 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -512,7 +512,7 @@ impl Clone for Lock { } } -#[derive(Debug)] +#[derive(Debug, Default)] pub struct RwLock(InnerRwLock); impl RwLock { -- cgit 1.4.1-3-g733a5