1
Fork 0

Verify that HIR parenting and Def parenting match.

This commit is contained in:
Camille GILLOT 2022-11-26 17:22:10 +00:00
parent 1dda298ad3
commit b22418eac3
3 changed files with 54 additions and 32 deletions

View file

@ -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,