@@ -134,7 +134,7 @@ fn dump_matched_mir_node<'tcx, F>(
134134 if let Some ( ref layout) = body. generator_layout {
135135 writeln ! ( file, "// generator_layout = {:?}" , layout) ?;
136136 }
137- writeln ! ( file, "" ) ?;
137+ writeln ! ( file) ?;
138138 extra_data ( PassWhere :: BeforeCFG , & mut file) ?;
139139 write_user_type_annotations ( body, & mut file) ?;
140140 write_mir_fn ( tcx, source, body, & mut extra_data, & mut file) ?;
@@ -242,13 +242,13 @@ pub fn write_mir_pretty<'tcx>(
242242 first = false ;
243243 } else {
244244 // Put empty lines between all items
245- writeln ! ( w, "" ) ?;
245+ writeln ! ( w) ?;
246246 }
247247
248248 write_mir_fn ( tcx, MirSource :: item ( def_id) , body, & mut |_, _| Ok ( ( ) ) , w) ?;
249249
250250 for ( i, body) in tcx. promoted_mir ( def_id) . iter_enumerated ( ) {
251- writeln ! ( w, "" ) ?;
251+ writeln ! ( w) ?;
252252 let src = MirSource { instance : ty:: InstanceDef :: Item ( def_id) , promoted : Some ( i) } ;
253253 write_mir_fn ( tcx, src, body, & mut |_, _| Ok ( ( ) ) , w) ?;
254254 }
@@ -271,7 +271,7 @@ where
271271 extra_data ( PassWhere :: BeforeBlock ( block) , w) ?;
272272 write_basic_block ( tcx, block, body, extra_data, w) ?;
273273 if block. index ( ) + 1 != body. basic_blocks ( ) . len ( ) {
274- writeln ! ( w, "" ) ?;
274+ writeln ! ( w) ?;
275275 }
276276 }
277277
@@ -529,7 +529,7 @@ pub fn write_mir_intro<'tcx>(
529529 write_scope_tree ( tcx, body, & scope_tree, w, OUTERMOST_SOURCE_SCOPE , 1 ) ?;
530530
531531 // Add an empty line before the first block is printed.
532- writeln ! ( w, "" ) ?;
532+ writeln ! ( w) ?;
533533
534534 Ok ( ( ) )
535535}
0 commit comments