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_incremental | |
| parent | 1e9a50dde8fe417348a9e4c74787975527502ec3 (diff) | |
| download | rust-0999b019f8e0a96ca7aac9fd5ec095d59b0806ec.tar.gz rust-0999b019f8e0a96ca7aac9fd5ec095d59b0806ec.zip | |
Dogfood `feature(file_buffered)`
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/assert_dep_graph.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_incremental/src/lib.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_incremental/src/assert_dep_graph.rs b/compiler/rustc_incremental/src/assert_dep_graph.rs index 646b9dbe133..a006786aa75 100644 --- a/compiler/rustc_incremental/src/assert_dep_graph.rs +++ b/compiler/rustc_incremental/src/assert_dep_graph.rs @@ -35,7 +35,7 @@ use std::env; use std::fs::{self, File}; -use std::io::{BufWriter, Write}; +use std::io::Write; use rustc_data_structures::fx::FxIndexSet; use rustc_data_structures::graph::implementation::{Direction, INCOMING, NodeIndex, OUTGOING}; @@ -245,7 +245,7 @@ fn dump_graph(query: &DepGraphQuery) { { // dump a .txt file with just the edges: let txt_path = format!("{path}.txt"); - let mut file = BufWriter::new(File::create(&txt_path).unwrap()); + let mut file = File::create_buffered(&txt_path).unwrap(); for (source, target) in &edges { write!(file, "{source:?} -> {target:?}\n").unwrap(); } diff --git a/compiler/rustc_incremental/src/lib.rs b/compiler/rustc_incremental/src/lib.rs index dda1232b80b..e8735cba9bd 100644 --- a/compiler/rustc_incremental/src/lib.rs +++ b/compiler/rustc_incremental/src/lib.rs @@ -5,6 +5,7 @@ #![deny(missing_docs)] #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] #![doc(rust_logo)] +#![feature(file_buffered)] #![feature(rustdoc_internals)] #![warn(unreachable_pub)] // tidy-alphabetical-end |
