@@ -1516,22 +1516,27 @@ impl<'a> State<'a> {
1516
1516
try!( self . popen ( ) ) ;
1517
1517
try!( self . print_string ( a. asm . get ( ) , a. asm_str_style ) ) ;
1518
1518
try!( self . word_space ( ":" ) ) ;
1519
- for & ( ref co, o) in a. outputs . iter ( ) {
1520
- try!( self . print_string ( co. get ( ) , ast:: CookedStr ) ) ;
1521
- try!( self . popen ( ) ) ;
1522
- try!( self . print_expr ( o) ) ;
1523
- try!( self . pclose ( ) ) ;
1524
- try!( self . word_space ( "," ) ) ;
1525
- }
1519
+
1520
+ try!( self . commasep ( Inconsistent , a. outputs . as_slice ( ) , |s, & ( ref co, o) | {
1521
+ try!( s. print_string ( co. get ( ) , ast:: CookedStr ) ) ;
1522
+ try!( s. popen ( ) ) ;
1523
+ try!( s. print_expr ( o) ) ;
1524
+ try!( s. pclose ( ) ) ;
1525
+ Ok ( ( ) )
1526
+ } ) ) ;
1527
+ try!( space ( & mut self . s ) ) ;
1526
1528
try!( self . word_space ( ":" ) ) ;
1527
- for & ( ref co, o) in a. inputs . iter ( ) {
1528
- try!( self . print_string ( co. get ( ) , ast:: CookedStr ) ) ;
1529
- try!( self . popen ( ) ) ;
1530
- try!( self . print_expr ( o) ) ;
1531
- try!( self . pclose ( ) ) ;
1532
- try!( self . word_space ( "," ) ) ;
1533
- }
1529
+
1530
+ try!( self . commasep ( Inconsistent , a. inputs . as_slice ( ) , |s, & ( ref co, o) | {
1531
+ try!( s. print_string ( co. get ( ) , ast:: CookedStr ) ) ;
1532
+ try!( s. popen ( ) ) ;
1533
+ try!( s. print_expr ( o) ) ;
1534
+ try!( s. pclose ( ) ) ;
1535
+ Ok ( ( ) )
1536
+ } ) ) ;
1537
+ try!( space ( & mut self . s ) ) ;
1534
1538
try!( self . word_space ( ":" ) ) ;
1539
+
1535
1540
try!( self . print_string ( a. clobbers . get ( ) , ast:: CookedStr ) ) ;
1536
1541
try!( self . pclose ( ) ) ;
1537
1542
}
0 commit comments