File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2285,7 +2285,8 @@ impl parser {
2285
2285
let stmt = self . parse_stmt ( initial_attrs) ;
2286
2286
initial_attrs = ~[ ] ;
2287
2287
match stmt. node {
2288
- stmt_expr( e, stmt_id) => { // Expression without semicolon:
2288
+ stmt_expr( e, stmt_id) => {
2289
+ // Expression without semicolon
2289
2290
match self . token {
2290
2291
token:: SEMI => {
2291
2292
self . bump ( ) ;
@@ -2297,9 +2298,11 @@ impl parser {
2297
2298
}
2298
2299
t => {
2299
2300
if classify:: stmt_ends_with_semi ( * stmt) {
2300
- self . fatal ( ~"expected `; ` or `} ` after \
2301
- expression but found `"
2302
- + token_to_str ( self . reader , t) + ~"`") ;
2301
+ self . fatal (
2302
+ ~"expected `; ` or `} ` after \
2303
+ expression but found `"
2304
+ + token_to_str ( self . reader , t)
2305
+ + ~"`") ;
2303
2306
}
2304
2307
stmts. push ( stmt) ;
2305
2308
}
You can’t perform that action at this time.
0 commit comments