File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 28
28
#![ feature( str_escape) ]
29
29
#![ feature( try_trait) ]
30
30
#![ feature( unicode_internals) ]
31
- #![ feature( catch_expr) ]
32
31
33
32
#![ recursion_limit="256" ]
34
33
Original file line number Diff line number Diff line change @@ -2081,12 +2081,12 @@ impl<'a> Parser<'a> {
2081
2081
2082
2082
let args = if self . eat_lt ( ) {
2083
2083
// `<'a, T, A = U>`
2084
- let args: PResult < _ > = do catch {
2085
- let ( args , bindings ) = self . parse_generic_args ( ) ? ;
2086
- self . expect_gt ( ) ? ;
2087
- let span = lo . to ( self . prev_span ) ;
2088
- AngleBracketedArgs { args , bindings , span }
2089
- } ;
2084
+ let args: PResult < _ > = self . parse_generic_args ( ) . and_then ( | ( args , bindings ) | {
2085
+ self . expect_gt ( ) . and_then ( |_| {
2086
+ let span = lo . to ( self . prev_span ) ;
2087
+ Ok ( AngleBracketedArgs { args , bindings , span } )
2088
+ } )
2089
+ } ) ;
2090
2090
2091
2091
match args {
2092
2092
Err ( mut err) => {
You can’t perform that action at this time.
0 commit comments