File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
branches/try/src/libsyntax/print Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 6a51de0a0a846524dc76b027f52f0afec1597383
4
+ refs/heads/try: 22baa46f784856b6d6bb4374bcc3fb4b66bb8097
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -1753,7 +1753,11 @@ impl<'a> State<'a> {
1753
1753
try!( self . print_literal ( & * * lit) ) ;
1754
1754
}
1755
1755
ast:: ExprCast ( ref expr, ref ty) => {
1756
- try!( self . print_expr_maybe_paren ( & * * expr) ) ;
1756
+ if let ast:: ExprCast ( ..) = expr. node {
1757
+ try!( self . print_expr ( & * * expr) ) ;
1758
+ } else {
1759
+ try!( self . print_expr_maybe_paren ( & * * expr) ) ;
1760
+ }
1757
1761
try!( space ( & mut self . s ) ) ;
1758
1762
try!( self . word_space ( "as" ) ) ;
1759
1763
try!( self . print_type ( & * * ty) ) ;
You can’t perform that action at this time.
0 commit comments