We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6379e5e commit b720847Copy full SHA for b720847
compiler/rustc_monomorphize/src/partitioning/mod.rs
@@ -97,7 +97,7 @@ mod merging;
97
98
use std::cmp;
99
use std::fs::{self, File};
100
-use std::io::Write;
+use std::io::{BufWriter, Write};
101
use std::path::{Path, PathBuf};
102
103
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
@@ -497,7 +497,8 @@ fn dump_mono_items_stats<'tcx>(
497
498
let filename = format!("{}.mono_items.md", crate_name.unwrap_or("unknown-crate"));
499
let output_path = output_directory.join(&filename);
500
- let mut file = File::create(output_path)?;
+ let file = File::create(output_path)?;
501
+ let mut file = BufWriter::new(file);
502
503
// Gather instantiated mono items grouped by def_id
504
let mut items_per_def_id: FxHashMap<_, Vec<_>> = Default::default();
0 commit comments