hir: Remove hir::Map::{opt_parent_id,parent_id,get_parent,find_parent}
This commit is contained in:
parent
e46e3e7107
commit
b07283815b
78 changed files with 233 additions and 318 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