This commit is contained in:
Matthias Krüger
2018-12-08 01:56:03 +01:00
committed by Philipp Hansch
parent 26602ddff4
commit f13d23de41
46 changed files with 140 additions and 140 deletions

View File

@@ -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));
}
}
}