@@ -7,17 +7,15 @@ use std::iter;
7
7
use rustc_abi:: { Endian , Layout } ;
8
8
use rustc_hir:: def:: DefKind ;
9
9
use rustc_hir:: { Attribute , LangItem } ;
10
- use rustc_middle:: infer:: canonical:: ir:: {
11
- Binder , EarlyBinder , ExistentialTraitRef , FnSig , TraitRef ,
12
- } ;
13
10
use rustc_middle:: mir:: interpret:: { AllocId , ConstAllocation , ErrorHandled , GlobalAlloc , Scalar } ;
14
11
use rustc_middle:: mir:: { BinOp , Body , Const as MirConst , ConstValue , UnOp } ;
15
12
use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf } ;
16
13
use rustc_middle:: ty:: print:: { with_forced_trimmed_paths, with_no_trimmed_paths} ;
17
14
use 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 ,
21
19
} ;
22
20
use rustc_middle:: { mir, ty} ;
23
21
use rustc_session:: cstore:: ForeignModule ;
@@ -189,7 +187,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
189
187
self . tcx . trait_impls_in_crate ( crate_num) . iter ( ) . map ( |impl_def_id| * impl_def_id) . collect ( )
190
188
}
191
189
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 > > {
193
191
self . tcx . impl_trait_ref ( impl_def) . unwrap ( )
194
192
}
195
193
@@ -370,7 +368,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
370
368
& self ,
371
369
def_id : DefId ,
372
370
args_ref : GenericArgsRef < ' tcx > ,
373
- ) -> Binder < TyCtxt < ' tcx > , FnSig < TyCtxt < ' tcx > > > {
371
+ ) -> Binder < ' tcx , FnSig < ' tcx > > {
374
372
let sig = self . tcx . fn_sig ( def_id) . instantiate ( self . tcx , args_ref) ;
375
373
sig
376
374
}
@@ -387,10 +385,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
387
385
}
388
386
389
387
/// 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 > > {
394
389
args_ref. as_closure ( ) . sig ( )
395
390
}
396
391
@@ -686,7 +681,7 @@ impl<'tcx, B: Bridge> SmirCtxt<'tcx, B> {
686
681
pub fn vtable_allocation (
687
682
& self ,
688
683
ty : Ty < ' tcx > ,
689
- trait_ref : Option < Binder < TyCtxt < ' tcx > , ExistentialTraitRef < TyCtxt < ' tcx > > > > ,
684
+ trait_ref : Option < Binder < ' tcx , ExistentialTraitRef < ' tcx > > > ,
690
685
) -> AllocId {
691
686
let alloc_id = self . tcx . vtable_allocation ( (
692
687
ty,
0 commit comments