rustup https://github.com/rust-lang/rust/pull/56502 ( .hir -> .hir() )
This commit is contained in:
committed by
Philipp Hansch
parent
26602ddff4
commit
f13d23de41
@@ -47,7 +47,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EnumGlobUse {
|
||||
fn check_mod(&mut self, cx: &LateContext<'a, 'tcx>, m: &'tcx Mod, _: Span, _: NodeId) {
|
||||
// only check top level `use` statements
|
||||
for item in &m.item_ids {
|
||||
self.lint_item(cx, cx.tcx.hir.expect_item(item.id));
|
||||
self.lint_item(cx, cx.tcx.hir().expect_item(item.id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user