File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -143,13 +143,12 @@ impl<'tcx> Queries<'tcx> {
143
143
) ) as _ ) ;
144
144
let definitions = FreezeLock :: new ( Definitions :: new ( stable_crate_id) ) ;
145
145
146
- let mut stable_crate_ids = StableCrateIdMap :: default ( ) ;
147
- stable_crate_ids. insert ( stable_crate_id, LOCAL_CRATE ) ;
146
+ let stable_crate_ids = FreezeLock :: new ( StableCrateIdMap :: default ( ) ) ;
148
147
let untracked = Untracked {
149
148
cstore,
150
149
source_span : AppendOnlyIndexVec :: new ( ) ,
151
150
definitions,
152
- stable_crate_ids : FreezeLock :: new ( stable_crate_ids ) ,
151
+ stable_crate_ids,
153
152
} ;
154
153
155
154
let qcx = passes:: create_global_ctxt (
@@ -164,7 +163,8 @@ impl<'tcx> Queries<'tcx> {
164
163
) ;
165
164
166
165
qcx. enter ( |tcx| {
167
- let feed = tcx. feed_local_crate ( ) ;
166
+ let feed = tcx. create_crate_num ( stable_crate_id) . unwrap ( ) ;
167
+ assert_eq ! ( feed. key( ) , LOCAL_CRATE ) ;
168
168
feed. crate_name ( crate_name) ;
169
169
170
170
let feed = tcx. feed_unit_query ( ) ;
Original file line number Diff line number Diff line change @@ -565,13 +565,6 @@ impl<'tcx> TyCtxt<'tcx> {
565
565
TyCtxtFeed { tcx : self , key : ( ) }
566
566
}
567
567
568
- /// Can only be fed before queries are run, and is thus exempt from any
569
- /// incremental issues. Do not use except for the initial query feeding.
570
- pub fn feed_local_crate ( self ) -> TyCtxtFeed < ' tcx , CrateNum > {
571
- self . dep_graph . assert_ignored ( ) ;
572
- TyCtxtFeed { tcx : self , key : LOCAL_CRATE }
573
- }
574
-
575
568
/// Only used in the resolver to register the `CRATE_DEF_ID` `DefId` and feed
576
569
/// some queries for it. It will panic if used twice.
577
570
pub fn create_local_crate_def_id ( self , span : Span ) -> TyCtxtFeed < ' tcx , LocalDefId > {
You can’t perform that action at this time.
0 commit comments