Rollup merge of #147988 - JonathanBrouwer:unused_field_crate_name, r=jdonszelmann

Remove unused field `style` from `AttributeKind::CrateName`

r? `@jdonszelmann`
This commit is contained in:
Jacob Pratt 2025-10-22 13:20:23 -04:00 committed by GitHub
commit c047a7e861
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View file

@ -20,12 +20,7 @@ impl<S: Stage> SingleAttributeParser<S> for CrateNameParser {
return None;
};
Some(AttributeKind::CrateName {
name,
name_span: n.value_span,
attr_span: cx.attr_span,
style: cx.attr_style,
})
Some(AttributeKind::CrateName { name, name_span: n.value_span, attr_span: cx.attr_span })
}
}

View file

@ -499,7 +499,7 @@ pub enum AttributeKind {
Coverage(Span, CoverageAttrKind),
/// Represents `#[crate_name = ...]`
CrateName { name: Symbol, name_span: Span, attr_span: Span, style: AttrStyle },
CrateName { name: Symbol, name_span: Span, attr_span: Span },
/// Represents `#[custom_mir]`.
CustomMir(Option<(MirDialect, Span)>, Option<(MirPhase, Span)>, Span),