Skip to content

Commit 31f79ff

Browse files
committed
Fix PARENT_ID placement
1 parent 3ecd955 commit 31f79ff

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

compiler/rustc_ast_lowering/src/delegation/attributes.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
4242
pub(super) fn add_attributes_if_needed(&mut self, resolution: &DelegationResolution<'hir>) {
4343
let &DelegationResolution { span, sig_id, .. } = resolution;
4444

45-
let new_attrs = self.create_new_attributes(span, sig_id, self.attrs.get(&PARENT_ID));
46-
4745
const PARENT_ID: hir::ItemLocalId = hir::ItemLocalId::ZERO;
46+
let new_attrs = self.create_new_attributes(span, sig_id, self.attrs.get(&PARENT_ID));
4847

4948
if !new_attrs.is_empty() {
5049
let new_attrs = match self.attrs.get(&PARENT_ID) {

0 commit comments

Comments
 (0)