public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] parser: Fix attribute differentation
@ 2023-04-18 16:46 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-18 16:46 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:002bb55a1022ce7a84c3d31642c91b8f8ee52cd6
commit 002bb55a1022ce7a84c3d31642c91b8f8ee52cd6
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Mon Apr 17 16:20:32 2023 +0200
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>
Diff:
---
gcc/rust/parse/rust-parse-impl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index 85e044d8f3c..48ac521a867 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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-18 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 16:46 [gcc/devel/rust/master] parser: Fix attribute differentation Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).