@@ -7,17 +7,15 @@ use std::iter;
77use rustc_abi:: { Endian , Layout } ;
88use rustc_hir:: def:: DefKind ;
99use rustc_hir:: { Attribute , LangItem } ;
10- use rustc_middle:: infer:: canonical:: ir:: {
11- Binder , EarlyBinder , ExistentialTraitRef , FnSig , TraitRef ,
12- } ;
1310use rustc_middle:: mir:: interpret:: { AllocId , ConstAllocation , ErrorHandled , GlobalAlloc , Scalar } ;
1411use rustc_middle:: mir:: { BinOp , Body , Const as MirConst , ConstValue , UnOp } ;
1512use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf } ;
1613use rustc_middle:: ty:: print:: { with_forced_trimmed_paths, with_no_trimmed_paths} ;
1714use rustc_middle:: ty:: {
18- AdtDef , AdtKind , AssocItem , ClosureKind , GenericArgsRef , Instance , InstanceKind , IntrinsicDef ,
19- List , PolyFnSig , ScalarInt , TraitDef , Ty , TyCtxt , TyKind , TypeVisitableExt , UintTy , ValTree ,
20- VariantDef ,
15+ AdtDef , AdtKind , AssocItem , Binder , ClosureKind , CoroutineArgsExt , EarlyBinder ,
16+ ExistentialTraitRef , FnSig , GenericArgsRef , Instance , InstanceKind , IntrinsicDef , List ,
17+ PolyFnSig , ScalarInt , TraitDef , TraitRef , Ty , TyCtxt , TyKind , TypeVisitableExt , UintTy ,
18+ ValTree , VariantDef ,
2119} ;
2220use rustc_middle:: { mir, ty} ;
2321use rustc_session:: cstore:: ForeignModule ;
@@ -189,7 +187,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
189187 self . tcx . trait_impls_in_crate ( crate_num) . iter ( ) . map ( |impl_def_id| * impl_def_id) . collect ( )
190188 }
191189
192- pub fn trait_impl ( & self , impl_def : DefId ) -> EarlyBinder < TyCtxt < ' tcx > , TraitRef < TyCtxt < ' tcx > > > {
190+ pub fn trait_impl ( & self , impl_def : DefId ) -> EarlyBinder < ' tcx , TraitRef < ' tcx > > {
193191 self . tcx . impl_trait_ref ( impl_def) . unwrap ( )
194192 }
195193
@@ -370,7 +368,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
370368 & self ,
371369 def_id : DefId ,
372370 args_ref : GenericArgsRef < ' tcx > ,
373- ) -> Binder < TyCtxt < ' tcx > , FnSig < TyCtxt < ' tcx > > > {
371+ ) -> Binder < ' tcx , FnSig < ' tcx > > {
374372 let sig = self . tcx . fn_sig ( def_id) . instantiate ( self . tcx , args_ref) ;
375373 sig
376374 }
@@ -387,10 +385,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
387385 }
388386
389387 /// Retrieve the closure signature for the given generic arguments.
390- pub fn closure_sig (
391- & self ,
392- args_ref : GenericArgsRef < ' tcx > ,
393- ) -> Binder < TyCtxt < ' tcx > , FnSig < TyCtxt < ' tcx > > > {
388+ pub fn closure_sig ( & self , args_ref : GenericArgsRef < ' tcx > ) -> Binder < ' tcx , FnSig < ' tcx > > {
394389 args_ref. as_closure ( ) . sig ( )
395390 }
396391
@@ -686,7 +681,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
686681 pub fn vtable_allocation (
687682 & self ,
688683 ty : Ty < ' tcx > ,
689- trait_ref : Option < Binder < TyCtxt < ' tcx > , ExistentialTraitRef < TyCtxt < ' tcx > > > > ,
684+ trait_ref : Option < Binder < ' tcx , ExistentialTraitRef < ' tcx > > > ,
690685 ) -> AllocId {
691686 let alloc_id = self . tcx . vtable_allocation ( (
692687 ty,
0 commit comments