@@ -756,11 +756,8 @@ pub(crate) mod printing {
756756 self . colon2_token . to_tokens ( tokens) ;
757757 self . lt_token . to_tokens ( tokens) ;
758758
759- // Print lifetimes before types and consts, all before bindings,
760- // regardless of their order in self.args.
761- //
762- // TODO: ordering rules for const arguments vs type arguments have
763- // not been settled yet. https://github.com/rust-lang/rust/issues/44580
759+ // Print lifetimes before types/consts/bindings, regardless of their
760+ // order in self.args.
764761 let mut trailing_or_empty = true ;
765762 for param in self . args . pairs ( ) {
766763 match * * param. value ( ) {
@@ -776,30 +773,17 @@ pub(crate) mod printing {
776773 }
777774 for param in self . args . pairs ( ) {
778775 match * * param. value ( ) {
779- GenericArgument :: Type ( _) | GenericArgument :: Const ( _) => {
780- if !trailing_or_empty {
781- <Token ! [ , ] >:: default ( ) . to_tokens ( tokens) ;
782- }
783- param. to_tokens ( tokens) ;
784- trailing_or_empty = param. punct ( ) . is_some ( ) ;
785- }
786- GenericArgument :: Lifetime ( _)
776+ GenericArgument :: Type ( _)
787777 | GenericArgument :: Binding ( _)
788- | GenericArgument :: Constraint ( _) => { }
789- }
790- }
791- for param in self . args . pairs ( ) {
792- match * * param. value ( ) {
793- GenericArgument :: Binding ( _) | GenericArgument :: Constraint ( _) => {
778+ | GenericArgument :: Constraint ( _)
779+ | GenericArgument :: Const ( _) => {
794780 if !trailing_or_empty {
795781 <Token ! [ , ] >:: default ( ) . to_tokens ( tokens) ;
796782 }
797783 param. to_tokens ( tokens) ;
798784 trailing_or_empty = param. punct ( ) . is_some ( ) ;
799785 }
800- GenericArgument :: Lifetime ( _)
801- | GenericArgument :: Type ( _)
802- | GenericArgument :: Const ( _) => { }
786+ GenericArgument :: Lifetime ( _) => { }
803787 }
804788 }
805789
0 commit comments