aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-07-18 16:16:12 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-07-18 16:18:02 +0100
commit3bf3ea88786c43f81064f913d62115a48aac9f44 (patch)
treeb1ab6903f8e9d5bb1d544f40b3b9fca5eee7ba22 /gcc/rust/parse/rust-parse.h
parent6920d2294b3c6f106478fd3decaa511faf3cac84 (diff)
downloadgcc-3bf3ea88786c43f81064f913d62115a48aac9f44.zip
gcc-3bf3ea88786c43f81064f913d62115a48aac9f44.tar.gz
gcc-3bf3ea88786c43f81064f913d62115a48aac9f44.tar.bz2
Ensure we parse any inner item attributes when expanding a module
When compiling code containing module expansions we must first ensure any possible inner item attributes are parser first and applied to the module, otherwise we end up in a bad state and ignore attributes. Fixes #1089
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r--gcc/rust/parse/rust-parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h
index 4cae6ff..e4c5a2c 100644
--- a/gcc/rust/parse/rust-parse.h
+++ b/gcc/rust/parse/rust-parse.h
@@ -149,6 +149,7 @@ public:
std::unique_ptr<AST::IdentifierPattern> parse_identifier_pattern ();
std::unique_ptr<AST::TokenTree> parse_token_tree ();
AST::Attribute parse_attribute_body ();
+ AST::AttrVec parse_inner_attributes ();
private:
void skip_after_semicolon ();
@@ -164,7 +165,6 @@ private:
void parse_statement_seq (bool (Parser::*done) ());
// AST-related stuff - maybe move or something?
- AST::AttrVec parse_inner_attributes ();
AST::Attribute parse_inner_attribute ();
AST::AttrVec parse_outer_attributes ();
AST::Attribute parse_outer_attribute ();