Dogfood feature(file_buffered)
This commit is contained in:
parent
1e9a50dde8
commit
0999b019f8
28 changed files with 44 additions and 40 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue