aboutsummaryrefslogtreecommitdiff
path: root/gcc/file-prefix-map.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-20 12:00:11 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-06-11 15:53:17 +0000
commit2a1e169956f9faa13928eda3f146ea0cc770b864 (patch)
tree141cfaa57d9b37d06f5cf28df31756a85e402bc8 /gcc/file-prefix-map.h
parent50862befdb2c33ad6b71f0c4c8ce3d455c92cffd (diff)
downloadgcc-2a1e169956f9faa13928eda3f146ea0cc770b864.zip
gcc-2a1e169956f9faa13928eda3f146ea0cc770b864.tar.gz
gcc-2a1e169956f9faa13928eda3f146ea0cc770b864.tar.bz2
Allow multiple outer attributes on generic params
Previously generic params only allowed one outer attribute in front of them. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Visit outer attributes. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Change outer attribute visit, we need to visit all of them. * ast/rust-ast.cc (LifetimeParam::as_string): Change as_string implementation to allow multiple outer attributes. (TypeParam::as_string): Likewise. * ast/rust-ast.h (class LifetimeParam): Allow multiple outer attributes. * ast/rust-item.h (class TypeParam): Likewise. * ast/rust-path.h: Likewise. * parse/rust-parse-impl.h (Parser::parse_generic_param): Change call to outer attribute parsing to collect several attributes. (Parser::parse_lifetime_param): Likewise. (Parser::parse_type_param): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/file-prefix-map.h')
0 files changed, 0 insertions, 0 deletions