Skip to content

Commit 5572263

Browse files
CastilloDelcjgillot
andcommitted
Update compiler/rustc_ast_lowering/src/item.rs
Co-authored-by: Camille Gillot <[email protected]>
1 parent fdb5fe2 commit 5572263

File tree

1 file changed

+1
-7
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-7
lines changed

compiler/rustc_ast_lowering/src/item.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,7 @@ impl<'a, 'hir> ItemLowerer<'a, 'hir> {
9494
for (def_id, info) in lctx.children {
9595
self.owners.ensure_contains_elem(def_id, || hir::MaybeOwner::Phantom);
9696
debug_assert!(matches!(self.owners[def_id], hir::MaybeOwner::Phantom));
97-
match (self.owners[def_id], info) {
98-
(hir::MaybeOwner::Phantom, _)
99-
| (hir::MaybeOwner::NonOwner(_), hir::MaybeOwner::Owner(_)) => {
100-
self.owners[def_id] = info;
101-
}
102-
_ => unreachable!(),
103-
}
97+
self.owners[def_id] = info;
10498
}
10599
}
106100

0 commit comments

Comments
 (0)