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! {
681681 desc { |tcx| "computing CoerceUnsized info for `{}`" , tcx. def_path_str( key) }
682682 }
683683
684- query typeck_item_bodies( _: CrateNum ) -> ( ) {
684+ query typeck_item_bodies( _: ( ) ) -> ( ) {
685685 desc { "type-checking all item bodies" }
686686 }
687687
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
105105use rustc_errors:: { pluralize, struct_span_err, Applicability } ;
106106use rustc_hir as hir;
107107use rustc_hir:: def:: Res ;
108- use rustc_hir:: def_id:: { CrateNum , DefId , LocalDefId , LOCAL_CRATE } ;
108+ use rustc_hir:: def_id:: { DefId , LocalDefId } ;
109109use rustc_hir:: intravisit:: Visitor ;
110110use rustc_hir:: itemlikevisit:: ItemLikeVisitor ;
111111use rustc_hir:: { HirIdMap , ImplicitSelfKind , Node } ;
@@ -1161,8 +1161,7 @@ impl ItemLikeVisitor<'tcx> for CheckItemTypesVisitor<'tcx> {
11611161 fn visit_foreign_item ( & mut self , _: & ' tcx hir:: ForeignItem < ' tcx > ) { }
11621162}
11631163
1164- fn typeck_item_bodies ( tcx : TyCtxt < ' _ > , crate_num : CrateNum ) {
1165- debug_assert ! ( crate_num == LOCAL_CRATE ) ;
1164+ fn typeck_item_bodies ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) {
11661165 tcx. par_body_owners ( |body_owner_def_id| {
11671166 tcx. ensure ( ) . typeck ( body_owner_def_id) ;
11681167 } ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mod variance;
9797
9898use rustc_errors:: { struct_span_err, ErrorReported } ;
9999use rustc_hir as hir;
100- use rustc_hir:: def_id:: { DefId , LOCAL_CRATE } ;
100+ use rustc_hir:: def_id:: DefId ;
101101use rustc_hir:: { Node , CRATE_HIR_ID } ;
102102use rustc_infer:: infer:: { InferOk , TyCtxtInferExt } ;
103103use rustc_infer:: traits:: TraitEngineExt as _;
@@ -510,7 +510,7 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorReported> {
510510 }
511511 } ) ;
512512
513- tcx. sess . time ( "item_bodies_checking" , || tcx. typeck_item_bodies ( LOCAL_CRATE ) ) ;
513+ tcx. sess . time ( "item_bodies_checking" , || tcx. typeck_item_bodies ( ( ) ) ) ;
514514
515515 check_unused:: check_crate ( tcx) ;
516516 check_for_entry_fn ( tcx) ;
You can’t perform that action at this time.
0 commit comments