@@ -134,7 +134,7 @@ fn dump_matched_mir_node<'tcx, F>(
134
134
if let Some ( ref layout) = body. generator_layout {
135
135
writeln ! ( file, "// generator_layout = {:?}" , layout) ?;
136
136
}
137
- writeln ! ( file, "" ) ?;
137
+ writeln ! ( file) ?;
138
138
extra_data ( PassWhere :: BeforeCFG , & mut file) ?;
139
139
write_user_type_annotations ( body, & mut file) ?;
140
140
write_mir_fn ( tcx, source, body, & mut extra_data, & mut file) ?;
@@ -242,13 +242,13 @@ pub fn write_mir_pretty<'tcx>(
242
242
first = false ;
243
243
} else {
244
244
// Put empty lines between all items
245
- writeln ! ( w, "" ) ?;
245
+ writeln ! ( w) ?;
246
246
}
247
247
248
248
write_mir_fn ( tcx, MirSource :: item ( def_id) , body, & mut |_, _| Ok ( ( ) ) , w) ?;
249
249
250
250
for ( i, body) in tcx. promoted_mir ( def_id) . iter_enumerated ( ) {
251
- writeln ! ( w, "" ) ?;
251
+ writeln ! ( w) ?;
252
252
let src = MirSource { instance : ty:: InstanceDef :: Item ( def_id) , promoted : Some ( i) } ;
253
253
write_mir_fn ( tcx, src, body, & mut |_, _| Ok ( ( ) ) , w) ?;
254
254
}
@@ -271,7 +271,7 @@ where
271
271
extra_data ( PassWhere :: BeforeBlock ( block) , w) ?;
272
272
write_basic_block ( tcx, block, body, extra_data, w) ?;
273
273
if block. index ( ) + 1 != body. basic_blocks ( ) . len ( ) {
274
- writeln ! ( w, "" ) ?;
274
+ writeln ! ( w) ?;
275
275
}
276
276
}
277
277
@@ -529,7 +529,7 @@ pub fn write_mir_intro<'tcx>(
529
529
write_scope_tree ( tcx, body, & scope_tree, w, OUTERMOST_SOURCE_SCOPE , 1 ) ?;
530
530
531
531
// Add an empty line before the first block is printed.
532
- writeln ! ( w, "" ) ?;
532
+ writeln ! ( w) ?;
533
533
534
534
Ok ( ( ) )
535
535
}
0 commit comments