From 002bb55a1022ce7a84c3d31642c91b8f8ee52cd6 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 17 Apr 2023 16:20:32 +0200 Subject: 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 --- gcc/rust/parse/rust-parse-impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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::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 (); -- cgit v1.1