@@ -3417,9 +3417,9 @@ impl Item {
34173417 ItemKind :: Fn ( i) => Some ( & i. generics ) ,
34183418 ItemKind :: TyAlias ( i) => Some ( & i. generics ) ,
34193419 ItemKind :: TraitAlias ( _, generics, _)
3420- | ItemKind :: Enum ( _, _ , generics )
3421- | ItemKind :: Struct ( _, _ , generics )
3422- | ItemKind :: Union ( _, _ , generics ) => Some ( & generics) ,
3420+ | ItemKind :: Enum ( _, generics , _ )
3421+ | ItemKind :: Struct ( _, generics , _ )
3422+ | ItemKind :: Union ( _, generics , _ ) => Some ( & generics) ,
34233423 ItemKind :: Trait ( i) => Some ( & i. generics ) ,
34243424 ItemKind :: Impl ( i) => Some ( & i. generics ) ,
34253425 }
@@ -3663,15 +3663,15 @@ pub enum ItemKind {
36633663 /// An enum definition (`enum`).
36643664 ///
36653665 /// E.g., `enum Foo<A, B> { C<A>, D<B> }`.
3666- Enum ( Ident , EnumDef , Generics ) ,
3666+ Enum ( Ident , Generics , EnumDef ) ,
36673667 /// A struct definition (`struct`).
36683668 ///
36693669 /// E.g., `struct Foo<A> { x: A }`.
3670- Struct ( Ident , VariantData , Generics ) ,
3670+ Struct ( Ident , Generics , VariantData ) ,
36713671 /// A union definition (`union`).
36723672 ///
36733673 /// E.g., `union Foo<A, B> { x: A, y: B }`.
3674- Union ( Ident , VariantData , Generics ) ,
3674+ Union ( Ident , Generics , VariantData ) ,
36753675 /// A trait declaration (`trait`).
36763676 ///
36773677 /// E.g., `trait Foo { .. }`, `trait Foo<T> { .. }` or `auto trait Foo {}`.
@@ -3688,10 +3688,8 @@ pub enum ItemKind {
36883688 ///
36893689 /// E.g., `foo!(..)`.
36903690 MacCall ( P < MacCall > ) ,
3691-
36923691 /// A macro definition.
36933692 MacroDef ( Ident , MacroDef ) ,
3694-
36953693 /// A single delegation item (`reuse`).
36963694 ///
36973695 /// E.g. `reuse <Type as Trait>::name { target_expr_template }`.
@@ -3767,9 +3765,9 @@ impl ItemKind {
37673765 Self :: Fn ( box Fn { generics, .. } )
37683766 | Self :: TyAlias ( box TyAlias { generics, .. } )
37693767 | Self :: Const ( box ConstItem { generics, .. } )
3770- | Self :: Enum ( _, _ , generics )
3771- | Self :: Struct ( _, _ , generics )
3772- | Self :: Union ( _, _ , generics )
3768+ | Self :: Enum ( _, generics , _ )
3769+ | Self :: Struct ( _, generics , _ )
3770+ | Self :: Union ( _, generics , _ )
37733771 | Self :: Trait ( box Trait { generics, .. } )
37743772 | Self :: TraitAlias ( _, generics, _)
37753773 | Self :: Impl ( box Impl { generics, .. } ) => Some ( generics) ,
0 commit comments