1
Fork 0

Dogfood feature(file_buffered)

This commit is contained in:
Josh Stone 2024-09-24 14:25:16 -07:00
parent 1e9a50dde8
commit 0999b019f8
28 changed files with 44 additions and 40 deletions

View file

@ -266,7 +266,7 @@ where
A::Domain: DebugWithContext<A>,
{
use std::fs;
use std::io::{self, Write};
use std::io::Write;
let def_id = body.source.def_id();
let Ok(attrs) = RustcMirAttrs::parse(tcx, def_id) else {
@ -281,8 +281,7 @@ where
if let Some(parent) = path.parent() {
fs::create_dir_all(parent)?;
}
let f = fs::File::create(&path)?;
io::BufWriter::new(f)
fs::File::create_buffered(&path)?
}
None if dump_enabled(tcx, A::NAME, def_id) => {