From 3713577c36eeba454e8bd3aef6bfce5ee6683c2b Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 18 Jan 2021 15:34:54 +0100 Subject: Turn brace-enclosed initializer list into actual assignments ... as used otherwise, in this file. And, this avoids: [...]/source-gcc/gcc/rust/parse/rust-parse-impl.h:12243:72: error: could not convert '{false, true}' from '' to 'Rust::ParseRestrictions' = {/* can_be_struct_expr = */ false, /* entered_from_unary = */ true}; ^ --- gcc/rust/parse/rust-parse-impl.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gcc') 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::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) { -- cgit v1.1