aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-04-17 16:20:32 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-04-17 17:25:51 +0000
commit002bb55a1022ce7a84c3d31642c91b8f8ee52cd6 (patch)
tree1104d59880462d6631988b599cf9d9f0243f6614
parent58a83dcdabfe1faaf0b28853cbbc397c7d2475b9 (diff)
downloadgcc-002bb55a1022ce7a84c3d31642c91b8f8ee52cd6.zip
gcc-002bb55a1022ce7a84c3d31642c91b8f8ee52cd6.tar.gz
gcc-002bb55a1022ce7a84c3d31642c91b8f8ee52cd6.tar.bz2
parser: Fix attribute differentation
In some cases, while parsing an outer attribute, the parser would return an inner attribute. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_outer_attribute): Fix attribute status. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--gcc/rust/parse/rust-parse-impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index 85e044d..48ac521 100644
--- a/gcc/rust/parse/rust-parse-impl.h
+++ b/gcc/rust/parse/rust-parse-impl.h
@@ -1222,7 +1222,7 @@ Parser<ManagedTokenSource>::parse_outer_attribute ()
auto input = std::move (std::get<1> (values));
auto loc = std::get<2> (values);
auto actual_attribute
- = AST::Attribute (std::move (path), std::move (input), loc, true);
+ = AST::Attribute (std::move (path), std::move (input), loc, false);
if (lexer.peek_token ()->get_id () != RIGHT_SQUARE)
return AST::Attribute::create_empty ();