local_id is always != 0 at this point
This commit is contained in:
parent
cbfa7cebee
commit
d82a7bc1b5
1 changed files with 10 additions and 11 deletions
|
@ -549,7 +549,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
v.insert(local_id);
|
||||
self.item_local_id_counter.increment_by(1);
|
||||
|
||||
if local_id != hir::ItemLocalId::new(0) {
|
||||
assert_ne!(local_id, hir::ItemLocalId::new(0));
|
||||
if let Some(def_id) = self.resolver.opt_local_def_id(ast_node_id) {
|
||||
self.owners.ensure_contains_elem(def_id, || hir::MaybeOwner::Phantom);
|
||||
if let o @ hir::MaybeOwner::Phantom = &mut self.owners[def_id] {
|
||||
|
@ -562,7 +562,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||
if let Some(traits) = self.resolver.take_trait_map(ast_node_id) {
|
||||
self.trait_map.insert(hir_id.local_id, traits.into_boxed_slice());
|
||||
}
|
||||
}
|
||||
|
||||
hir_id
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue