@@ -522,7 +522,7 @@ pub struct GenericParam<'hir> {
522522 pub kind : GenericParamKind < ' hir > ,
523523}
524524
525- impl GenericParam < ' hir > {
525+ impl < ' hir > GenericParam < ' hir > {
526526 pub fn bounds_span_for_suggestions ( & self ) -> Option < Span > {
527527 self . bounds
528528 . iter ( )
@@ -557,7 +557,7 @@ pub struct Generics<'hir> {
557557 pub span : Span ,
558558}
559559
560- impl Generics < ' hir > {
560+ impl < ' hir > Generics < ' hir > {
561561 pub const fn empty ( ) -> Generics < ' hir > {
562562 Generics {
563563 params : & [ ] ,
@@ -622,7 +622,7 @@ pub enum WherePredicate<'hir> {
622622 EqPredicate ( WhereEqPredicate < ' hir > ) ,
623623}
624624
625- impl WherePredicate < ' _ > {
625+ impl < ' hir > WherePredicate < ' hir > {
626626 pub fn span ( & self ) -> Span {
627627 match self {
628628 WherePredicate :: BoundPredicate ( p) => p. span ,
@@ -644,7 +644,7 @@ pub struct WhereBoundPredicate<'hir> {
644644 pub bounds : GenericBounds < ' hir > ,
645645}
646646
647- impl WhereBoundPredicate < ' hir > {
647+ impl < ' hir > WhereBoundPredicate < ' hir > {
648648 /// Returns `true` if `param_def_id` matches the `bounded_ty` of this predicate.
649649 pub fn is_param_bound ( & self , param_def_id : DefId ) -> bool {
650650 let path = match self . bounded_ty . kind {
@@ -1236,7 +1236,7 @@ pub struct Body<'hir> {
12361236 pub generator_kind : Option < GeneratorKind > ,
12371237}
12381238
1239- impl Body < ' hir > {
1239+ impl < ' hir > Body < ' hir > {
12401240 pub fn id ( & self ) -> BodyId {
12411241 BodyId { hir_id : self . value . hir_id }
12421242 }
@@ -2623,7 +2623,7 @@ pub enum VariantData<'hir> {
26232623 Unit ( HirId ) ,
26242624}
26252625
2626- impl VariantData < ' hir > {
2626+ impl < ' hir > VariantData < ' hir > {
26272627 /// Return the fields of this variant.
26282628 pub fn fields ( & self ) -> & ' hir [ FieldDef < ' hir > ] {
26292629 match * self {
0 commit comments