@@ -7,11 +7,10 @@ use rustc_codegen_ssa::traits::CodegenBackend;
7
7
use rustc_codegen_ssa:: CodegenResults ;
8
8
use rustc_data_structures:: steal:: Steal ;
9
9
use rustc_data_structures:: svh:: Svh ;
10
- use rustc_data_structures:: sync:: { Lrc , OnceCell , RwLock , WorkerLocal } ;
10
+ use rustc_data_structures:: sync:: { AppendOnlyVec , Lrc , OnceCell , RwLock , WorkerLocal } ;
11
11
use rustc_hir:: def_id:: { CRATE_DEF_ID , LOCAL_CRATE } ;
12
12
use rustc_hir:: definitions:: Definitions ;
13
13
use rustc_incremental:: DepGraphFuture ;
14
- use rustc_index:: vec:: IndexVec ;
15
14
use rustc_lint:: LintStore ;
16
15
use rustc_metadata:: creader:: CStore ;
17
16
use rustc_middle:: arena:: Arena ;
@@ -195,10 +194,9 @@ impl<'tcx> Queries<'tcx> {
195
194
196
195
let cstore = RwLock :: new ( Box :: new ( CStore :: new ( sess) ) as _ ) ;
197
196
let definitions = RwLock :: new ( Definitions :: new ( sess. local_stable_crate_id ( ) ) ) ;
198
- let mut source_span = IndexVec :: default ( ) ;
197
+ let source_span = AppendOnlyVec :: new ( ) ;
199
198
let _id = source_span. push ( krate. spans . inner_span ) ;
200
199
debug_assert_eq ! ( _id, CRATE_DEF_ID ) ;
201
- let source_span = RwLock :: new ( source_span) ;
202
200
let untracked = Untracked { cstore, source_span, definitions } ;
203
201
204
202
let qcx = passes:: create_global_ctxt (
0 commit comments