@@ -14,7 +14,7 @@ use rustc::infer;
1414use rustc:: middle:: const_val:: ConstVal ;
1515use rustc:: mir:: * ;
1616use rustc:: mir:: transform:: MirSource ;
17- use rustc:: ty:: { self , Ty } ;
17+ use rustc:: ty:: { self , Ty , TyCtxt } ;
1818use rustc:: ty:: subst:: { Kind , Subst , Substs } ;
1919use rustc:: ty:: maps:: Providers ;
2020use rustc_const_math:: { ConstInt , ConstUsize } ;
@@ -36,7 +36,7 @@ pub fn provide(providers: &mut Providers) {
3636 providers. mir_shims = make_shim;
3737}
3838
39- fn make_shim < ' a , ' tcx > ( tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
39+ fn make_shim < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
4040 instance : ty:: InstanceDef < ' tcx > )
4141 -> & ' tcx Mir < ' tcx >
4242{
@@ -154,7 +154,7 @@ fn local_decls_for_sig<'tcx>(sig: &ty::FnSig<'tcx>, span: Span)
154154 . collect ( )
155155}
156156
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 > ,
158158 def_id : DefId ,
159159 ty : Option < Ty < ' tcx > > )
160160 -> Mir < ' tcx >
@@ -235,7 +235,7 @@ fn build_drop_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
235235pub struct DropShimElaborator < ' a , ' tcx : ' a > {
236236 pub mir : & ' a Mir < ' tcx > ,
237237 pub patch : MirPatch < ' tcx > ,
238- pub tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
238+ pub tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
239239 pub param_env : ty:: ParamEnv < ' tcx > ,
240240}
241241
@@ -250,7 +250,7 @@ impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx> {
250250
251251 fn patch ( & mut self ) -> & mut MirPatch < ' tcx > { & mut self . patch }
252252 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 }
254254 fn param_env ( & self ) -> ty:: ParamEnv < ' tcx > { self . param_env }
255255
256256 fn drop_style ( & self , _path : Self :: Path , mode : DropFlagMode ) -> DropStyle {
@@ -280,7 +280,7 @@ impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx> {
280280}
281281
282282/// 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 > ,
284284 def_id : DefId ,
285285 self_ty : ty:: Ty < ' tcx > )
286286 -> Mir < ' tcx >
@@ -306,7 +306,7 @@ fn build_clone_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
306306}
307307
308308struct CloneShimBuilder < ' a , ' tcx : ' a > {
309- tcx : ty :: TyCtxt < ' a , ' tcx , ' tcx > ,
309+ tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
310310 def_id : DefId ,
311311 local_decls : IndexVec < Local , LocalDecl < ' tcx > > ,
312312 blocks : IndexVec < BasicBlock , BasicBlockData < ' tcx > > ,
@@ -315,7 +315,7 @@ struct CloneShimBuilder<'a, 'tcx: 'a> {
315315}
316316
317317impl < ' 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 {
319319 let sig = tcx. fn_sig ( def_id) ;
320320 let sig = tcx. erase_late_bound_regions ( & sig) ;
321321 let span = tcx. def_span ( def_id) ;
@@ -666,7 +666,7 @@ impl<'a, 'tcx> CloneShimBuilder<'a, 'tcx> {
666666///
667667/// If `untuple_args` is a vec of types, the second argument of the
668668/// 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 > ,
670670 def_id : DefId ,
671671 rcvr_adjustment : Adjustment ,
672672 call_kind : CallKind ,
0 commit comments