diff --git a/src/librustc_mir/graphviz/mod.rs b/src/librustc_mir/graphviz/mod.rs index f8cec83dc31..d5da606d76e 100644 --- a/src/librustc_mir/graphviz/mod.rs +++ b/src/librustc_mir/graphviz/mod.rs @@ -34,24 +34,24 @@ impl<'a,'tcx> dot::Labeller<'a, BasicBlock, EdgeIndex> for Mir<'tcx> { fn node_label(&'a self, &n: &BasicBlock) -> dot::LabelText<'a> { let mut buffer = String::new(); - buffer.push_str(""); + buffer.push_str("
"); - buffer.push_str(""); + buffer.push_str(""); let data = self.basic_block_data(n); for statement in &data.statements { - buffer.push_str(""); + buffer.push_str(""); } - buffer.push_str(""); + buffer.push_str(""); - buffer.push_str("
"); - buffer.push_str(&format!("{:?}", n)); - buffer.push_str("
"); + buffer.push_str(&escape(format!("{:?}", n))); + buffer.push_str("
"); + buffer.push_str("
"); buffer.push_str(&escape(format!("{:?}", statement))); - buffer.push_str("
"); + buffer.push_str("
"); buffer.push_str(&escape(format!("{:?}", &data.terminator))); - buffer.push_str("
"); + buffer.push_str(""); dot::LabelText::html(buffer) }