@@ -158,15 +158,15 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AttrPass {
158
158
159
159
fn is_relevant_item ( tcx : ty:: TyCtxt , item : & Item ) -> bool {
160
160
if let ItemFn ( _, _, _, _, _, eid) = item. node {
161
- is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. map . body ( eid) . value )
161
+ is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value )
162
162
} else {
163
163
false
164
164
}
165
165
}
166
166
167
167
fn is_relevant_impl ( tcx : ty:: TyCtxt , item : & ImplItem ) -> bool {
168
168
match item. node {
169
- ImplItemKind :: Method ( _, eid) => is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. map . body ( eid) . value ) ,
169
+ ImplItemKind :: Method ( _, eid) => is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value ) ,
170
170
_ => false ,
171
171
}
172
172
}
@@ -175,7 +175,7 @@ fn is_relevant_trait(tcx: ty::TyCtxt, item: &TraitItem) -> bool {
175
175
match item. node {
176
176
TraitItemKind :: Method ( _, TraitMethod :: Required ( _) ) => true ,
177
177
TraitItemKind :: Method ( _, TraitMethod :: Provided ( eid) ) => {
178
- is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. map . body ( eid) . value )
178
+ is_relevant_expr ( tcx, tcx. body_tables ( eid) , & tcx. hir . body ( eid) . value )
179
179
} ,
180
180
_ => false ,
181
181
}
0 commit comments