@@ -187,13 +187,13 @@ pub enum AttributeKind {
187187 Align { align : Align , span : Span } ,
188188
189189 /// Represents `#[rustc_allow_const_fn_unstable]`.
190- AllowConstFnUnstable ( ThinVec < Symbol > ) ,
190+ AllowConstFnUnstable { features : ThinVec < ( Symbol , Span ) > } ,
191191
192192 /// Represents `#[allow_internal_unstable]`.
193- AllowInternalUnstable ( ThinVec < ( Symbol , Span ) > ) ,
193+ AllowInternalUnstable { features : ThinVec < ( Symbol , Span ) > } ,
194194
195195 /// Represents `#[rustc_as_ptr]` (used by the `dangling_pointers_from_temporaries` lint).
196- AsPtr ( Span ) ,
196+ AsPtr { span : Span } ,
197197
198198 /// Represents `#[rustc_default_body_unstable]`.
199199 BodyStability {
@@ -217,7 +217,7 @@ pub enum AttributeKind {
217217 } ,
218218
219219 /// Represents `#[rustc_const_stable_indirect]`.
220- ConstStabilityIndirect ,
220+ ConstStabilityIndirect { span : Span } ,
221221
222222 /// Represents [`#[deprecated]`](https://doc.rust-lang.org/stable/reference/attributes/diagnostics.html#the-deprecated-attribute).
223223 Deprecation { deprecation : Deprecation , span : Span } ,
@@ -226,14 +226,14 @@ pub enum AttributeKind {
226226 DocComment { style : AttrStyle , kind : CommentKind , span : Span , comment : Symbol } ,
227227
228228 /// Represents `#[inline]` and `#[rustc_force_inline]`.
229- Inline ( InlineAttr , Span ) ,
229+ Inline { kind : InlineAttr , span : Span } ,
230230
231231 /// Represents `#[rustc_macro_transparency]`.
232- MacroTransparency ( Transparency ) ,
232+ MacroTransparency { transparency : Transparency , span : Span } ,
233233 /// Represents `#[optimize(size|speed)]`
234- Optimize ( OptimizeAttr , Span ) ,
234+ Optimize { kind : OptimizeAttr , span : Span } ,
235235 /// Represents [`#[repr]`](https://doc.rust-lang.org/stable/reference/type-layout.html#representations).
236- Repr ( ThinVec < ( ReprAttr , Span ) > ) ,
236+ Repr { reprs : ThinVec < ( ReprAttr , Span ) > } ,
237237
238238 /// Represents `#[stable]`, `#[unstable]` and `#[rustc_allowed_through_unstable_modules]`.
239239 Stability {
0 commit comments