Verify that HIR parenting and Def parenting match.
This commit is contained in:
parent
1dda298ad3
commit
b22418eac3
3 changed files with 54 additions and 32 deletions
|
@ -77,7 +77,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
|
|||
if hir_id.owner != self.owner {
|
||||
span_bug!(
|
||||
span,
|
||||
"inconsistent DepNode at `{:?}` for `{:?}`: \
|
||||
"inconsistent HirId at `{:?}` for `{:?}`: \
|
||||
current_dep_node_owner={} ({:?}), hir_id.owner={} ({:?})",
|
||||
self.source_map.span_to_diagnostic_string(span),
|
||||
node,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue