Rollup merge of #120872 - petrochenkov:opthirpar, r=cjgillot
hir: Refactor getters for HIR parents See individual commits. I ended up removing on of the FIXMEs from https://github.com/rust-lang/rust/pull/120206 instead of addressing it.
This commit is contained in:
commit
4c154a1a48
79 changed files with 263 additions and 342 deletions
|
@ -792,7 +792,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
return id;
|
||||
}
|
||||
|
||||
let next = hir.parent_id(id);
|
||||
let next = self.tcx.parent_hir_id(id);
|
||||
if next == id {
|
||||
bug!("lint traversal reached the root of the crate");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue