Auto merge of #5467 - matthiaskrgr:rustup_43, r=flip1995
rustup https://github.com/rust-lang/rust/pull/71116 changelog: none
This commit is contained in:
commit
a9a4c8e630
@ -97,7 +97,8 @@ fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant<
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
prelude();
|
prelude();
|
||||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), hir::DUMMY_HIR_ID);
|
let parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
||||||
|
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user