diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-17 16:20:32 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:34:09 +0100 |
commit | 9113e0760682d809fca60e9189c1721e4acf9c6f (patch) | |
tree | 211145d6e5eaee2fa4e2a41724aaf5b60aa8c9b3 /gcc | |
parent | e5183f0e4a0cb2ab5ad0b6008c1d09aca303b246 (diff) | |
download | gcc-9113e0760682d809fca60e9189c1721e4acf9c6f.zip gcc-9113e0760682d809fca60e9189c1721e4acf9c6f.tar.gz gcc-9113e0760682d809fca60e9189c1721e4acf9c6f.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 2 |
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 6d20f48..13f0541 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 (); |