hir: remove NodeId from Item

This commit is contained in:
ljedrz 2019-02-27 17:35:24 +01:00
parent 3c25193f3f
commit 77fa041fc1
42 changed files with 208 additions and 212 deletions

View file

@ -27,7 +27,7 @@ struct VarianceTest<'a, 'tcx: 'a> {
impl<'a, 'tcx> ItemLikeVisitor<'tcx> for VarianceTest<'a, 'tcx> {
fn visit_item(&mut self, item: &'tcx hir::Item) {
let item_def_id = self.tcx.hir().local_def_id(item.id);
let item_def_id = self.tcx.hir().local_def_id_from_hir_id(item.hir_id);
if let ItemKind::Ty(..) = item.node {
for attr in self.tcx.get_attrs(item_def_id).iter() {