Skip to content

Commit

Permalink
Update compiler/rustc_ast_lowering/src/item.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Camille Gillot <[email protected]>
  • Loading branch information
CastilloDel and cjgillot committed Nov 15, 2022
1 parent fdb5fe2 commit 5572263
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions compiler/rustc_ast_lowering/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ impl<'a, 'hir> ItemLowerer<'a, 'hir> {
for (def_id, info) in lctx.children {
self.owners.ensure_contains_elem(def_id, || hir::MaybeOwner::Phantom);
debug_assert!(matches!(self.owners[def_id], hir::MaybeOwner::Phantom));
match (self.owners[def_id], info) {
(hir::MaybeOwner::Phantom, _)
| (hir::MaybeOwner::NonOwner(_), hir::MaybeOwner::Owner(_)) => {
self.owners[def_id] = info;
}
_ => unreachable!(),
}
self.owners[def_id] = info;
}
}

Expand Down

0 comments on commit 5572263

Please sign in to comment.