File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ rustc_queries! {
681
681
desc { |tcx| "computing CoerceUnsized info for `{}`" , tcx. def_path_str( key) }
682
682
}
683
683
684
- query typeck_item_bodies( _: CrateNum ) -> ( ) {
684
+ query typeck_item_bodies( _: ( ) ) -> ( ) {
685
685
desc { "type-checking all item bodies" }
686
686
}
687
687
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
105
105
use rustc_errors:: { pluralize, struct_span_err, Applicability } ;
106
106
use rustc_hir as hir;
107
107
use rustc_hir:: def:: Res ;
108
- use rustc_hir:: def_id:: { CrateNum , DefId , LocalDefId , LOCAL_CRATE } ;
108
+ use rustc_hir:: def_id:: { DefId , LocalDefId } ;
109
109
use rustc_hir:: intravisit:: Visitor ;
110
110
use rustc_hir:: itemlikevisit:: ItemLikeVisitor ;
111
111
use rustc_hir:: { HirIdMap , ImplicitSelfKind , Node } ;
@@ -1161,8 +1161,7 @@ impl ItemLikeVisitor<'tcx> for CheckItemTypesVisitor<'tcx> {
1161
1161
fn visit_foreign_item ( & mut self , _: & ' tcx hir:: ForeignItem < ' tcx > ) { }
1162
1162
}
1163
1163
1164
- fn typeck_item_bodies ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) {
1165
- debug_assert ! ( crate_num == LOCAL_CRATE ) ;
1164
+ fn typeck_item_bodies ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) {
1166
1165
tcx. par_body_owners ( |body_owner_def_id| {
1167
1166
tcx. ensure ( ) . typeck ( body_owner_def_id) ;
1168
1167
} ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mod variance;
97
97
98
98
use rustc_errors:: { struct_span_err, ErrorReported } ;
99
99
use rustc_hir as hir;
100
- use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
100
+ use rustc_hir:: def_id:: DefId ;
101
101
use rustc_hir:: { Node , CRATE_HIR_ID } ;
102
102
use rustc_infer:: infer:: { InferOk , TyCtxtInferExt } ;
103
103
use rustc_infer:: traits:: TraitEngineExt as _;
@@ -510,7 +510,7 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorReported> {
510
510
}
511
511
} ) ;
512
512
513
- tcx. sess . time ( "item_bodies_checking" , || tcx. typeck_item_bodies ( LOCAL_CRATE ) ) ;
513
+ tcx. sess . time ( "item_bodies_checking" , || tcx. typeck_item_bodies ( ( ) ) ) ;
514
514
515
515
check_unused:: check_crate ( tcx) ;
516
516
check_for_entry_fn ( tcx) ;
You can’t perform that action at this time.
0 commit comments