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