Skip to content

Commit b8c7e8a

Browse files
committed
Make -Z unpretty=mir suggest -Z dump-mir as well
1 parent 2b3cef8 commit b8c7e8a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/pretty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ pub fn write_mir_pretty<'tcx>(
319319

320320
writeln!(w, "// WARNING: This output format is intended for human consumers only")?;
321321
writeln!(w, "// and is subject to change without notice. Knock yourself out.")?;
322+
writeln!(w, "// HINT: See also -Z dump-mir for MIR at specific points during compilation.")?;
322323

323324
let mut first = true;
324325
for def_id in dump_mir_def_ids(tcx, single) {

tests/run-make/const_fn_mir/dump.mir

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// WARNING: This output format is intended for human consumers only
22
// and is subject to change without notice. Knock yourself out.
3+
// HINT: See also -Z dump-mir for MIR at specific points during compilation.
34
fn foo() -> i32 {
45
let mut _0: i32;
56
let mut _1: (i32, bool);

0 commit comments

Comments
 (0)