File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/rustc_monomorphize/src/partitioning Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mod merging;
9797
9898use std:: cmp;
9999use std:: fs:: { self , File } ;
100- use std:: io:: Write ;
100+ use std:: io:: { BufWriter , Write } ;
101101use std:: path:: { Path , PathBuf } ;
102102
103103use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
@@ -497,7 +497,8 @@ fn dump_mono_items_stats<'tcx>(
497497
498498 let filename = format ! ( "{}.mono_items.md" , crate_name. unwrap_or( "unknown-crate" ) ) ;
499499 let output_path = output_directory. join ( & filename) ;
500- let mut file = File :: create ( output_path) ?;
500+ let file = File :: create ( output_path) ?;
501+ let mut file = BufWriter :: new ( file) ;
501502
502503 // Gather instantiated mono items grouped by def_id
503504 let mut items_per_def_id: FxHashMap < _ , Vec < _ > > = Default :: default ( ) ;
You can’t perform that action at this time.
0 commit comments