diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2021-02-02 17:13:10 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2021-02-02 17:13:10 +0800 |
commit | 61b498895bcc0d99f00f0a89707d068d08e14246 (patch) | |
tree | 86a866a4467c6612ad1b8b68e6395f20aeb2daf6 /gcc/rust/parse/rust-parse-impl.h | |
parent | 3a0c8ca2156038b726e2689e9b46be4d8c40c55f (diff) | |
parent | e0e49f434423def63312084b04ea0e60e7787e27 (diff) | |
download | gcc-61b498895bcc0d99f00f0a89707d068d08e14246.zip gcc-61b498895bcc0d99f00f0a89707d068d08e14246.tar.gz gcc-61b498895bcc0d99f00f0a89707d068d08e14246.tar.bz2 |
Merge with upstream
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index a0d2af9..ffe4e91 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -22,8 +22,6 @@ along with GCC; see the file COPYING3. If not see #include "rust-diagnostics.h" -#include <algorithm> // for std::find - namespace Rust { // Left binding powers of operations. enum binding_powers @@ -12234,10 +12232,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) { |