@@ -20,7 +20,7 @@ struct LayoutTest<'tcx> {
2020 tcx : TyCtxt < ' tcx > ,
2121}
2222
23- impl ItemLikeVisitor < ' tcx > for LayoutTest < ' tcx > {
23+ impl < ' tcx > ItemLikeVisitor < ' tcx > for LayoutTest < ' tcx > {
2424 fn visit_item ( & mut self , item : & ' tcx hir:: Item < ' tcx > ) {
2525 match item. kind {
2626 ItemKind :: TyAlias ( ..)
@@ -42,7 +42,7 @@ impl ItemLikeVisitor<'tcx> for LayoutTest<'tcx> {
4242 fn visit_foreign_item ( & mut self , _: & ' tcx hir:: ForeignItem < ' tcx > ) { }
4343}
4444
45- impl LayoutTest < ' tcx > {
45+ impl < ' tcx > LayoutTest < ' tcx > {
4646 fn dump_layout_of ( & self , item_def_id : LocalDefId , item : & hir:: Item < ' tcx > , attr : & Attribute ) {
4747 let tcx = self . tcx ;
4848 let param_env = self . tcx . param_env ( item_def_id) ;
@@ -114,7 +114,7 @@ struct UnwrapLayoutCx<'tcx> {
114114 param_env : ParamEnv < ' tcx > ,
115115}
116116
117- impl LayoutOfHelpers < ' tcx > for UnwrapLayoutCx < ' tcx > {
117+ impl < ' tcx > LayoutOfHelpers < ' tcx > for UnwrapLayoutCx < ' tcx > {
118118 type LayoutOfResult = TyAndLayout < ' tcx > ;
119119
120120 fn handle_layout_err ( & self , err : LayoutError < ' tcx > , span : Span , ty : Ty < ' tcx > ) -> ! {
@@ -127,19 +127,19 @@ impl LayoutOfHelpers<'tcx> for UnwrapLayoutCx<'tcx> {
127127 }
128128}
129129
130- impl HasTyCtxt < ' tcx > for UnwrapLayoutCx < ' tcx > {
130+ impl < ' tcx > HasTyCtxt < ' tcx > for UnwrapLayoutCx < ' tcx > {
131131 fn tcx ( & self ) -> TyCtxt < ' tcx > {
132132 self . tcx
133133 }
134134}
135135
136- impl HasParamEnv < ' tcx > for UnwrapLayoutCx < ' tcx > {
136+ impl < ' tcx > HasParamEnv < ' tcx > for UnwrapLayoutCx < ' tcx > {
137137 fn param_env ( & self ) -> ParamEnv < ' tcx > {
138138 self . param_env
139139 }
140140}
141141
142- impl HasDataLayout for UnwrapLayoutCx < ' tcx > {
142+ impl < ' tcx > HasDataLayout for UnwrapLayoutCx < ' tcx > {
143143 fn data_layout ( & self ) -> & TargetDataLayout {
144144 self . tcx . data_layout ( )
145145 }
0 commit comments