Add warning about volatility of MIR output · rust-lang/rust@4ddedf7 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 4ddedf7

Add warning about volatility of MIR output

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 3 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -91,6 +91,9 @@ pub fn write_mir_pretty<'a, 'b, 'tcx, I>(tcx: TyCtxt<'b, 'tcx, 'tcx>,
91 91 -> io::Result<()>
92 92 where I: Iterator<Item=DefId>, 'tcx: 'a
93 93 {
94 +writeln!(w, "// WARNING: This output format is intended for human consumers only")?;
95 +writeln!(w, "// and is subject to change without notice. Knock yourself out.")?;
96 +
94 97 let mut first = true;
95 98 for def_id in iter.filter(DefId::is_local) {
96 99 let mir = &tcx.item_mir(def_id);