Skip to content

Commit cae8987

Browse files
Don't print newline inside a node label
This is only to make the generated DOT more legible.
1 parent c27f756 commit cae8987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/util/graphviz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn write_node_label<W: Write, INIT, FINI>(block: BasicBlock,
111111
fini(w)?;
112112

113113
// Close the table
114-
writeln!(w, "</table>")
114+
write!(w, "</table>")
115115
}
116116

117117
/// Write a graphviz DOT node for the given basic block.

0 commit comments

Comments
 (0)