@@ -594,7 +594,7 @@ impl<'a> FmtVisitor<'a> {
594594 let both_type = |l : & TyOpt , r : & TyOpt | is_type ( l) && is_type ( r) ;
595595 let both_opaque = |l : & TyOpt , r : & TyOpt | is_opaque ( l) && is_opaque ( r) ;
596596 let need_empty_line = |a : & ast:: AssocItemKind , b : & ast:: AssocItemKind | match ( a, b) {
597- ( TyAlias ( lty) , TyAlias ( rty) )
597+ ( Type ( lty) , Type ( rty) )
598598 if both_type ( & lty. ty , & rty. ty ) || both_opaque ( & lty. ty , & rty. ty ) =>
599599 {
600600 false
@@ -612,7 +612,7 @@ impl<'a> FmtVisitor<'a> {
612612 }
613613
614614 buffer. sort_by ( |( _, a) , ( _, b) | match ( & a. kind , & b. kind ) {
615- ( TyAlias ( lty) , TyAlias ( rty) )
615+ ( Type ( lty) , Type ( rty) )
616616 if both_type ( & lty. ty , & rty. ty ) || both_opaque ( & lty. ty , & rty. ty ) =>
617617 {
618618 a. ident . as_str ( ) . cmp ( b. ident . as_str ( ) )
@@ -621,10 +621,10 @@ impl<'a> FmtVisitor<'a> {
621621 a. ident . as_str ( ) . cmp ( b. ident . as_str ( ) )
622622 }
623623 ( Fn ( ..) , Fn ( ..) ) => a. span . lo ( ) . cmp ( & b. span . lo ( ) ) ,
624- ( TyAlias ( ty) , _) if is_type ( & ty. ty ) => Ordering :: Less ,
625- ( _, TyAlias ( ty) ) if is_type ( & ty. ty ) => Ordering :: Greater ,
626- ( TyAlias ( ..) , _) => Ordering :: Less ,
627- ( _, TyAlias ( ..) ) => Ordering :: Greater ,
624+ ( Type ( ty) , _) if is_type ( & ty. ty ) => Ordering :: Less ,
625+ ( _, Type ( ty) ) if is_type ( & ty. ty ) => Ordering :: Greater ,
626+ ( Type ( ..) , _) => Ordering :: Less ,
627+ ( _, Type ( ..) ) => Ordering :: Greater ,
628628 ( Const ( ..) , _) => Ordering :: Less ,
629629 ( _, Const ( ..) ) => Ordering :: Greater ,
630630 ( MacCall ( ..) , _) => Ordering :: Less ,
0 commit comments