We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a9e52a commit e10e0bcCopy full SHA for e10e0bc
src/librustc_mir/pretty.rs
@@ -77,12 +77,12 @@ pub fn dump_mir<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
77
node_id, promotion_id, pass_name, disambiguator);
78
file_path.push(&file_name);
79
let _ = fs::File::create(&file_path).and_then(|mut file| {
80
- try!(writeln!(file, "// MIR for `{}`", node_path));
81
- try!(writeln!(file, "// node_id = {}", node_id));
82
- try!(writeln!(file, "// pass_name = {}", pass_name));
83
- try!(writeln!(file, "// disambiguator = {}", disambiguator));
84
- try!(writeln!(file, ""));
85
- try!(write_mir_fn(tcx, src, mir, &mut file, auxiliary));
+ writeln!(file, "// MIR for `{}`", node_path)?;
+ writeln!(file, "// node_id = {}", node_id)?;
+ writeln!(file, "// pass_name = {}", pass_name)?;
+ writeln!(file, "// disambiguator = {}", disambiguator)?;
+ writeln!(file, "")?;
+ write_mir_fn(tcx, src, mir, &mut file, auxiliary)?;
86
Ok(())
87
});
88
}
0 commit comments