Revert "Auto merge of #101862 - cjgillot:lint-regression, r=oli-obk"
This reverts commitbc7b17cfe3
, reversing changes made to5253b0a0a1
.
This commit is contained in:
parent
8ab71ab59f
commit
381bd2a836
2 changed files with 9 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue