[gcc r14-7483] gccrs: parser: Fix attribute differentation
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 17:37:48 GMT 2024
https://gcc.gnu.org/g:9113e0760682d809fca60e9189c1721e4acf9c6f
commit r14-7483-g9113e0760682d809fca60e9189c1721e4acf9c6f
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Mon Apr 17 16:20:32 2023 +0200
gccrs: 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 6d20f480bb7..13f05419f41 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 ();
More information about the Gcc-cvs
mailing list