@@ -130,21 +130,22 @@ fn unbreakable_initializer_expr_pre_formatting_let_else_length_near_max_width()
130130
131131fn unbreakable_initializer_expr_pre_formatting_length_up_to_opening_brace_near_max_width ( ) {
132132 // Pre Formatting:
133- // The length of `(indent)let pat = init else {` is 100 ( max_width)
133+ // The length of `(indent)let pat = init else {` is 99 (< max_width)
134134 // Post Formatting:
135135 // The else keyword and opening brace remain on the same line as the initializer expr,
136136 // and the else block is formatted over multiple lines because we can't fit the
137137 // else block on the same line as the initializer expr.
138- let Some ( x) = some_really_really_really_really_really_really_really_really_long_name____E else {
138+ let Some ( x) = some_really_really_really_really_really_really_really_really_long_name___E else {
139139 return ;
140140 } ;
141141
142142 // Pre Formatting:
143143 // The length of `(indent)let pat = init else {` is 101 (> max_width)
144144 // Post Formatting:
145- // The else keyword and opening brace remain on the same line as the initializer expr,
146- // which leads to the `{` exceeding the max width
147- let Some ( x) = some_really_really_really_really_really_really_really_really_long_name_____F else {
145+ // The else keyword and opening brace cannot fit on the same line as the initializer expr.
146+ // They are formatted on the next line.
147+ let Some ( x) = some_really_really_really_really_really_really_really_really_long_name_____F
148+ else {
148149 return ;
149150 } ;
150151}
@@ -153,9 +154,10 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
153154 // Pre Formatting:
154155 // The length of `(indent)let pat = init` is 99 (< max_width)
155156 // Post Formatting:
156- // The else keyword and opening brace remain on the same line as the initializer expr,
157- // which leads to the `else {` exceeding the max width
158- let Some ( x) = some_really_really_really_really_really_really_really_really_really_long_name___G else {
157+ // The else keyword and opening brace cannot fit on the same line as the initializer expr.
158+ // They are formatted on the next line.
159+ let Some ( x) = some_really_really_really_really_really_really_really_really_really_long_name___G
160+ else {
159161 return ;
160162 } ;
161163
0 commit comments