File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -2227,17 +2227,11 @@ impl parser {
2227
2227
}
2228
2228
2229
2229
let lo = self . span . lo ;
2230
- if self . eat_keyword ( ~"unsafe ") {
2231
- self . expect ( token:: LBRACE ) ;
2232
- let { inner, next} = maybe_parse_inner_attrs_and_next ( self ,
2233
- parse_attrs) ;
2234
- return ( inner, self . parse_block_tail_ ( lo, unsafe_blk, next) ) ;
2235
- } else {
2236
- self . expect ( token:: LBRACE ) ;
2237
- let { inner, next} = maybe_parse_inner_attrs_and_next ( self ,
2238
- parse_attrs) ;
2239
- return ( inner, self . parse_block_tail_ ( lo, default_blk, next) ) ;
2240
- }
2230
+ let us = self . eat_keyword ( ~"unsafe ") ;
2231
+ self . expect ( token:: LBRACE ) ;
2232
+ let { inner, next} = maybe_parse_inner_attrs_and_next ( self ,
2233
+ parse_attrs) ;
2234
+ return ( inner, self . parse_block_tail_ ( lo, if us { unsafe_blk } else { default_blk } , next) ) ;
2241
2235
}
2242
2236
2243
2237
fn parse_block_no_value ( ) -> blk {
You can’t perform that action at this time.
0 commit comments