File tree Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -2996,10 +2996,12 @@ fn rewrite_bounds_on_where_clause(
29962996 DefinitiveListTactic :: Vertical
29972997 } ;
29982998
2999+ let preserve_newline = context. config . version ( ) == Version :: One ;
3000+
29993001 let fmt = ListFormatting :: new ( shape, context. config )
30003002 . tactic ( shape_tactic)
30013003 . trailing_separator ( comma_tactic)
3002- . preserve_newline ( true ) ;
3004+ . preserve_newline ( preserve_newline ) ;
30033005 write_list ( & items. collect :: < Vec < _ > > ( ) , & fmt)
30043006}
30053007
Original file line number Diff line number Diff line change 1+ // rustfmt-version: One
2+
3+ fn foo < T > ( _: T )
4+ where
5+ T : std:: fmt:: Debug ,
6+
7+ T : std:: fmt:: Display ,
8+ {
9+ }
Original file line number Diff line number Diff line change 1+ // rustfmt-version: Two
2+
3+ fn foo < T > ( _: T )
4+ where
5+ T : std:: fmt:: Debug ,
6+
7+ T : std:: fmt:: Display ,
8+ {
9+ }
Original file line number Diff line number Diff line change 1+ // rustfmt-version: One
2+
3+ fn foo < T > ( _: T )
4+ where
5+ T : std:: fmt:: Debug ,
6+
7+ T : std:: fmt:: Display ,
8+ {
9+ }
Original file line number Diff line number Diff line change 1+ // rustfmt-version: Two
2+
3+ fn foo < T > ( _: T )
4+ where
5+ T : std:: fmt:: Debug ,
6+ T : std:: fmt:: Display ,
7+ {
8+ }
You can’t perform that action at this time.
0 commit comments