about summary refs log tree commit diff
path: root/compiler/rustc_mir/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-10-02 15:40:24 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-10-04 07:54:02 -0400
commit4c83eec00883e10e7b859d039dcc0e937a0706d5 (patch)
tree53da6dd2e9a985d9a926d88bee19063b8f77eaaa /compiler/rustc_mir/src
parent8902ce5d848f0b58f02b72725f195ec9022449a6 (diff)
downloadrust-4c83eec00883e10e7b859d039dcc0e937a0706d5.tar.gz
rust-4c83eec00883e10e7b859d039dcc0e937a0706d5.zip
Fix rebase fallout
Diffstat (limited to 'compiler/rustc_mir/src')
-rw-r--r--compiler/rustc_mir/src/dataflow/move_paths/builder.rs2
-rw-r--r--compiler/rustc_mir/src/util/graphviz.rs11
2 files changed, 4 insertions, 9 deletions
diff --git a/compiler/rustc_mir/src/dataflow/move_paths/builder.rs b/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
index 3e45061a9cd..ab7fadac91e 100644
--- a/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
+++ b/compiler/rustc_mir/src/dataflow/move_paths/builder.rs
@@ -362,7 +362,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
     fn gather_terminator(&mut self, term: &Terminator<'tcx>) {
         match term.kind {
             TerminatorKind::Goto { target: _ }
-            | TerminatorKind::FalseEdges { .. }
+            | TerminatorKind::FalseEdge { .. }
             | TerminatorKind::FalseUnwind { .. }
             // In some sense returning moves the return place into the current
             // call's destination, however, since there are no statements after
diff --git a/compiler/rustc_mir/src/util/graphviz.rs b/compiler/rustc_mir/src/util/graphviz.rs
index cdabc70d72e..7e794e55c72 100644
--- a/compiler/rustc_mir/src/util/graphviz.rs
+++ b/compiler/rustc_mir/src/util/graphviz.rs
@@ -114,21 +114,16 @@ where
     let (blk, bgcolor) = if data.is_cleanup {
         (format!("{} (cleanup)", block.index()), "lightblue")
     } else {
-        let color = if dark_mode {
-            "dimgray"
-        } else {
-            "gray"
-        };
-        (format!("{}", block.index()), "gray")
+        let color = if dark_mode { "dimgray" } else { "gray" };
+        (format!("{}", block.index()), color)
     };
     write!(
         w,
         r#"<tr><td bgcolor="{bgcolor}" {attrs} colspan="{colspan}">{blk}</td></tr>"#,
-        bgcolor = if dark_mode { "dimgray" } else { "gray" },
         attrs = r#"align="center""#,
         colspan = num_cols,
         blk = blk,
-        color = color
+        bgcolor = bgcolor
     )?;
 
     init(w)?;