about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index c079645ff37..d81bd09f37a 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2231,7 +2231,8 @@ impl parser {
         self.expect(token::LBRACE);
         let {inner, next} = maybe_parse_inner_attrs_and_next(self,
                                                              parse_attrs);
-        return (inner, self.parse_block_tail_(lo, if us { unsafe_blk } else { default_blk }, next));
+        let blk_check_mode = if us { unsafe_blk } else { default_blk };
+        return (inner, self.parse_block_tail_(lo, blk_check_mode, next));
     }
 
     fn parse_block_no_value() -> blk {