diff options
| author | Gary Guo <gary@garyguo.net> | 2021-11-22 16:25:28 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2021-11-22 22:17:03 +0000 |
| commit | 6d61d87b227f2314e06f8da7c33bab9633119006 (patch) | |
| tree | 9221eb0e15e78fcdb3e42edaf5a0a16903644407 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | cebd2dda1d9071f2209079370c412f4ef9ef2b82 (diff) | |
| download | rust-6d61d87b227f2314e06f8da7c33bab9633119006.tar.gz rust-6d61d87b227f2314e06f8da7c33bab9633119006.zip | |
Split inline const to two feature gates
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 0c8c45410bd..3669a4fce9c 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1243,7 +1243,7 @@ impl<'a> Parser<'a> { } else if self.eat_keyword(kw::Unsafe) { self.parse_block_expr(None, lo, BlockCheckMode::Unsafe(ast::UserProvided), attrs) } else if self.check_inline_const(0) { - self.parse_const_block(lo.to(self.token.span)) + self.parse_const_block(lo.to(self.token.span), false) } else if self.is_do_catch_block() { self.recover_do_catch(attrs) } else if self.is_try_block() { |
