File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
src/librustc_mir/dataflow/generic Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -610,25 +610,25 @@ where
610610 let mut line_break_inserted = false ;
611611
612612 for idx in elems {
613- if first {
614- first = false ;
615- } else {
616- write ! ( w, "{}" , sep) ?;
617- curr_line_width += sep_width;
618- }
619-
620613 buf. clear ( ) ;
621614 analysis. pretty_print_idx ( & mut buf, idx) ?;
622615 let idx_str =
623616 str:: from_utf8 ( & buf) . expect ( "Output of `pretty_print_idx` must be valid UTF-8" ) ;
624617 let escaped = dot:: escape_html ( idx_str) ;
625618 let escaped_width = escaped. chars ( ) . count ( ) ;
626619
627- if let Some ( line_break) = & line_break {
628- if curr_line_width + sep_width + escaped_width > line_break. limit {
629- write ! ( w, "{}" , line_break. sequence) ?;
630- line_break_inserted = true ;
631- curr_line_width = 0 ;
620+ if first {
621+ first = false ;
622+ } else {
623+ write ! ( w, "{}" , sep) ?;
624+ curr_line_width += sep_width;
625+
626+ if let Some ( line_break) = & line_break {
627+ if curr_line_width + sep_width + escaped_width > line_break. limit {
628+ write ! ( w, "{}" , line_break. sequence) ?;
629+ line_break_inserted = true ;
630+ curr_line_width = 0 ;
631+ }
632632 }
633633 }
634634
You can’t perform that action at this time.
0 commit comments