diff options
| author | Josh Stone <jistone@redhat.com> | 2024-09-24 14:25:16 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-09-24 14:25:16 -0700 |
| commit | 0999b019f8e0a96ca7aac9fd5ec095d59b0806ec (patch) | |
| tree | 6bba5c63e251caa7a1aa28b8636324b620fc483c /compiler/rustc_interface | |
| parent | 1e9a50dde8fe417348a9e4c74787975527502ec3 (diff) | |
| download | rust-0999b019f8e0a96ca7aac9fd5ec095d59b0806ec.tar.gz rust-0999b019f8e0a96ca7aac9fd5ec095d59b0806ec.zip | |
Dogfood `feature(file_buffered)`
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/lib.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/lib.rs b/compiler/rustc_interface/src/lib.rs index 94ebe51f213..b81a7402701 100644 --- a/compiler/rustc_interface/src/lib.rs +++ b/compiler/rustc_interface/src/lib.rs @@ -1,5 +1,6 @@ // tidy-alphabetical-start #![feature(decl_macro)] +#![feature(file_buffered)] #![feature(let_chains)] #![feature(try_blocks)] #![warn(unreachable_pub)] diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 617581cf667..bba517915a2 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -519,7 +519,7 @@ fn write_out_deps(tcx: TyCtxt<'_>, outputs: &OutputFilenames, out_filenames: &[P write_deps_to_file(&mut file)?; } OutFileName::Real(ref path) => { - let mut file = BufWriter::new(fs::File::create(path)?); + let mut file = fs::File::create_buffered(path)?; write_deps_to_file(&mut file)?; } } |
