aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/parse/rust-parse-impl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index 7b72bbb..ea468ca 100644
--- a/gcc/rust/parse/rust-parse-impl.h
+++ b/gcc/rust/parse/rust-parse-impl.h
@@ -12239,10 +12239,9 @@ Parser<ManagedTokenSource>::null_denotation (
// HACK: as struct expressions should always be value expressions,
// cannot be referenced
- ParseRestrictions entered_from_unary
- = {/* can_be_struct_expr = */ false, /* entered_from_unary = */ true};
- /*entered_from_unary.entered_from_unary = true;
- entered_from_unary.can_be_struct_expr = false;*/
+ ParseRestrictions entered_from_unary;
+ entered_from_unary.entered_from_unary = true;
+ entered_from_unary.can_be_struct_expr = false;
if (lexer.peek_token ()->get_id () == MUT)
{