Dogfood feature(file_buffered)
This commit is contained in:
parent
1e9a50dde8
commit
0999b019f8
28 changed files with 44 additions and 40 deletions
|
@ -24,7 +24,7 @@ pub fn emit_mir(tcx: TyCtxt<'_>) -> io::Result<()> {
|
|||
write_mir_pretty(tcx, None, &mut f)?;
|
||||
}
|
||||
OutFileName::Real(path) => {
|
||||
let mut f = io::BufWriter::new(File::create(&path)?);
|
||||
let mut f = File::create_buffered(&path)?;
|
||||
write_mir_pretty(tcx, None, &mut f)?;
|
||||
if tcx.sess.opts.json_artifact_notifications {
|
||||
tcx.dcx().emit_artifact_notification(&path, "mir");
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#![feature(box_patterns)]
|
||||
#![feature(const_type_name)]
|
||||
#![feature(cow_is_borrowed)]
|
||||
#![feature(file_buffered)]
|
||||
#![feature(if_let_guard)]
|
||||
#![feature(impl_trait_in_assoc_type)]
|
||||
#![feature(let_chains)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue