Skip to content

Commit 4d099e6

Browse files
Add -Z dump-mir-dataflow
1 parent 7520894 commit 4d099e6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/librustc_interface/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ fn test_debugging_options_tracking_hash() {
566566
assert_eq!(reference.dep_tracking_hash(), opts.dep_tracking_hash());
567567
opts.debugging_opts.dump_mir_graphviz = true;
568568
assert_eq!(reference.dep_tracking_hash(), opts.dep_tracking_hash());
569+
opts.debugging_opts.dump_mir_dataflow = true;
570+
assert_eq!(reference.dep_tracking_hash(), opts.dep_tracking_hash());
569571

570572
// Make sure changing a [TRACKED] option changes the hash
571573
opts = reference.clone();

src/librustc_session/options.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
837837
"the directory the MIR is dumped into"),
838838
dump_mir_graphviz: bool = (false, parse_bool, [UNTRACKED],
839839
"in addition to `.mir` files, create graphviz `.dot` files"),
840+
dump_mir_dataflow: bool = (false, parse_bool, [UNTRACKED],
841+
"in addition to `.mir` files, create graphviz `.dot` files with dataflow results"),
840842
dump_mir_exclude_pass_number: bool = (false, parse_bool, [UNTRACKED],
841843
"if set, exclude the pass number when dumping MIR (used in tests)"),
842844
mir_emit_retag: bool = (false, parse_bool, [TRACKED],

0 commit comments

Comments
 (0)