1
Fork 0

Stop using walk_crate.

This commit is contained in:
Camille GILLOT 2021-08-26 18:42:08 +02:00
parent ad3407f482
commit 7ec973d9ce
15 changed files with 45 additions and 39 deletions

View file

@ -37,7 +37,7 @@ fn lint_levels(tcx: TyCtxt<'_>, (): ()) -> LintLevelMap {
let push = builder.levels.push(tcx.hir().attrs(hir::CRATE_HIR_ID), &store, true);
builder.levels.register_id(hir::CRATE_HIR_ID);
intravisit::walk_crate(&mut builder, krate);
tcx.hir().walk_crate(&mut builder);
builder.levels.pop(push);
builder.levels.build_map()