@@ -20,13 +20,13 @@ extern crate rustc_session;
2020
2121use rustc_borrowck:: consumers:: BodyWithBorrowckFacts ;
2222use rustc_driver:: Compilation ;
23- use rustc_hir:: def_id:: LocalDefId ;
2423use rustc_hir:: def:: DefKind ;
24+ use rustc_hir:: def_id:: LocalDefId ;
2525use rustc_interface:: interface:: Compiler ;
2626use rustc_interface:: { Config , Queries } ;
2727use rustc_middle:: ty:: query:: query_values:: mir_borrowck;
2828use rustc_middle:: ty:: query:: { ExternProviders , Providers } ;
29- use rustc_middle:: ty:: { self , TyCtxt } ;
29+ use rustc_middle:: ty:: TyCtxt ;
3030use rustc_session:: Session ;
3131use std:: cell:: RefCell ;
3232use std:: collections:: HashMap ;
@@ -127,10 +127,7 @@ thread_local! {
127127}
128128
129129fn mir_borrowck < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId ) -> mir_borrowck < ' tcx > {
130- let body_with_facts = rustc_borrowck:: consumers:: get_body_with_borrowck_facts (
131- tcx,
132- ty:: WithOptConstParam :: unknown ( def_id) ,
133- ) ;
130+ let body_with_facts = rustc_borrowck:: consumers:: get_body_with_borrowck_facts ( tcx, def_id) ;
134131 // SAFETY: The reader casts the 'static lifetime to 'tcx before using it.
135132 let body_with_facts: BodyWithBorrowckFacts < ' static > =
136133 unsafe { std:: mem:: transmute ( body_with_facts) } ;
0 commit comments