@@ -81,8 +81,8 @@ impl LintPass for AttrPass {
81
81
}
82
82
}
83
83
84
- impl LateLintPass for AttrPass {
85
- fn check_attribute < ' a , ' tcx : ' a > ( & mut self , cx : & LateContext < ' a , ' tcx > , attr : & ' tcx Attribute ) {
84
+ impl < ' a , ' tcx > LateLintPass < ' a , ' tcx > for AttrPass {
85
+ fn check_attribute ( & mut self , cx : & LateContext < ' a , ' tcx > , attr : & ' tcx Attribute ) {
86
86
if let MetaItemKind :: List ( ref items) = attr. value . node {
87
87
if items. is_empty ( ) || attr. name ( ) != "deprecated" {
88
88
return ;
@@ -99,7 +99,7 @@ impl LateLintPass for AttrPass {
99
99
}
100
100
}
101
101
102
- fn check_item < ' a , ' tcx : ' a > ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx Item ) {
102
+ fn check_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx Item ) {
103
103
if is_relevant_item ( cx, item) {
104
104
check_attrs ( cx, item. span , & item. name , & item. attrs )
105
105
}
@@ -138,13 +138,13 @@ impl LateLintPass for AttrPass {
138
138
}
139
139
}
140
140
141
- fn check_impl_item < ' a , ' tcx : ' a > ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx ImplItem ) {
141
+ fn check_impl_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx ImplItem ) {
142
142
if is_relevant_impl ( cx, item) {
143
143
check_attrs ( cx, item. span , & item. name , & item. attrs )
144
144
}
145
145
}
146
146
147
- fn check_trait_item < ' a , ' tcx : ' a > ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx TraitItem ) {
147
+ fn check_trait_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx TraitItem ) {
148
148
if is_relevant_trait ( cx, item) {
149
149
check_attrs ( cx, item. span , & item. name , & item. attrs )
150
150
}
0 commit comments