1
Fork 0

Revert "Auto merge of #101862 - cjgillot:lint-regression, r=oli-obk"

This reverts commit bc7b17cfe3, reversing
changes made to 5253b0a0a1.
This commit is contained in:
Camille GILLOT 2022-09-20 20:03:40 +02:00
parent 8ab71ab59f
commit 381bd2a836
2 changed files with 9 additions and 13 deletions

View file

@ -126,7 +126,7 @@ impl ShallowLintLevelMap {
return (Some(level), src);
}
for parent in tcx.hir().parent_id_iter(start) {
for (parent, _) in tcx.hir().parent_iter(start) {
let specs = tcx.shallow_lint_levels_on(parent);
if let Some(&(level, src)) = specs.specs.get(&id) {
return (Some(level), src);