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;
97
97
98
98
use std:: cmp;
99
99
use std:: fs:: { self , File } ;
100
- use std:: io:: Write ;
100
+ use std:: io:: { BufWriter , Write } ;
101
101
use std:: path:: { Path , PathBuf } ;
102
102
103
103
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
@@ -497,7 +497,8 @@ fn dump_mono_items_stats<'tcx>(
497
497
498
498
let filename = format ! ( "{}.mono_items.md" , crate_name. unwrap_or( "unknown-crate" ) ) ;
499
499
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) ;
501
502
502
503
// Gather instantiated mono items grouped by def_id
503
504
let mut items_per_def_id: FxHashMap < _ , Vec < _ > > = Default :: default ( ) ;
You can’t perform that action at this time.
0 commit comments