We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PARENT_ID
1 parent 3ecd955 commit 31f79ffCopy full SHA for 31f79ff
1 file changed
compiler/rustc_ast_lowering/src/delegation/attributes.rs
@@ -42,9 +42,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
42
pub(super) fn add_attributes_if_needed(&mut self, resolution: &DelegationResolution<'hir>) {
43
let &DelegationResolution { span, sig_id, .. } = resolution;
44
45
- let new_attrs = self.create_new_attributes(span, sig_id, self.attrs.get(&PARENT_ID));
46
-
47
const PARENT_ID: hir::ItemLocalId = hir::ItemLocalId::ZERO;
+ let new_attrs = self.create_new_attributes(span, sig_id, self.attrs.get(&PARENT_ID));
48
49
if !new_attrs.is_empty() {
50
let new_attrs = match self.attrs.get(&PARENT_ID) {
0 commit comments