@@ -14,7 +14,7 @@ use rustc::infer;
14
14
use rustc:: middle:: const_val:: ConstVal ;
15
15
use rustc:: mir:: * ;
16
16
use rustc:: mir:: transform:: MirSource ;
17
- use rustc:: ty:: { self , Ty } ;
17
+ use rustc:: ty:: { self , Ty , TyCtxt } ;
18
18
use rustc:: ty:: subst:: { Kind , Subst , Substs } ;
19
19
use rustc:: ty:: maps:: Providers ;
20
20
use rustc_const_math:: { ConstInt , ConstUsize } ;
@@ -36,7 +36,7 @@ pub fn provide(providers: &mut Providers) {
36
36
providers. mir_shims = make_shim;
37
37
}
38
38
39
- fn make_shim < ' a , ' tcx > ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
39
+ fn make_shim < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
40
40
instance : ty:: InstanceDef < ' tcx > )
41
41
-> & ' tcx Mir < ' tcx >
42
42
{
@@ -154,7 +154,7 @@ fn local_decls_for_sig<'tcx>(sig: &ty::FnSig<'tcx>, span: Span)
154
154
. collect ( )
155
155
}
156
156
157
- fn build_drop_shim < ' a , ' tcx > ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
157
+ fn build_drop_shim < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
158
158
def_id : DefId ,
159
159
ty : Option < Ty < ' tcx > > )
160
160
-> Mir < ' tcx >
@@ -235,7 +235,7 @@ fn build_drop_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
235
235
pub struct DropShimElaborator < ' a , ' tcx : ' a > {
236
236
pub mir : & ' a Mir < ' tcx > ,
237
237
pub patch : MirPatch < ' tcx > ,
238
- pub tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
238
+ pub tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
239
239
pub param_env : ty:: ParamEnv < ' tcx > ,
240
240
}
241
241
@@ -250,7 +250,7 @@ impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx> {
250
250
251
251
fn patch ( & mut self ) -> & mut MirPatch < ' tcx > { & mut self . patch }
252
252
fn mir ( & self ) -> & ' a Mir < ' tcx > { self . mir }
253
- fn tcx ( & self ) -> ty :: TyCtxt < ' a , ' tcx , ' tcx > { self . tcx }
253
+ fn tcx ( & self ) -> TyCtxt < ' a , ' tcx , ' tcx > { self . tcx }
254
254
fn param_env ( & self ) -> ty:: ParamEnv < ' tcx > { self . param_env }
255
255
256
256
fn drop_style ( & self , _path : Self :: Path , mode : DropFlagMode ) -> DropStyle {
@@ -280,7 +280,7 @@ impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx> {
280
280
}
281
281
282
282
/// Build a `Clone::clone` shim for `self_ty`. Here, `def_id` is `Clone::clone`.
283
- fn build_clone_shim < ' a , ' tcx > ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
283
+ fn build_clone_shim < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
284
284
def_id : DefId ,
285
285
self_ty : ty:: Ty < ' tcx > )
286
286
-> Mir < ' tcx >
@@ -306,7 +306,7 @@ fn build_clone_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
306
306
}
307
307
308
308
struct CloneShimBuilder < ' a , ' tcx : ' a > {
309
- tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
309
+ tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
310
310
def_id : DefId ,
311
311
local_decls : IndexVec < Local , LocalDecl < ' tcx > > ,
312
312
blocks : IndexVec < BasicBlock , BasicBlockData < ' tcx > > ,
@@ -315,7 +315,7 @@ struct CloneShimBuilder<'a, 'tcx: 'a> {
315
315
}
316
316
317
317
impl < ' a , ' tcx > CloneShimBuilder < ' a , ' tcx > {
318
- fn new ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > , def_id : DefId ) -> Self {
318
+ fn new ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , def_id : DefId ) -> Self {
319
319
let sig = tcx. fn_sig ( def_id) ;
320
320
let sig = tcx. erase_late_bound_regions ( & sig) ;
321
321
let span = tcx. def_span ( def_id) ;
@@ -666,7 +666,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
666
666
///
667
667
/// If `untuple_args` is a vec of types, the second argument of the
668
668
/// function will be untupled as these types.
669
- fn build_call_shim < ' a , ' tcx > ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
669
+ fn build_call_shim < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
670
670
def_id : DefId ,
671
671
rcvr_adjustment : Adjustment ,
672
672
call_kind : CallKind ,
0 commit comments