mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 05:23:07 +00:00
Update compiler/rustc_ast_lowering/src/item.rs
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
parent
fdb5fe2ed8
commit
557226348f
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user