diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-01-30 12:44:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 12:44:25 +0000 |
commit | d7c321da9f8fdee4527285c782db57c7c4d520e4 (patch) | |
tree | ba6531ab7ceea6caca1c74cf89cb219a9ce40c84 /gcc/rust/backend/rust-compile-pattern.cc | |
parent | 0ae13efb5a6383a3e7e22ceb064fa358038bd36f (diff) | |
parent | 3630e0e2bf0fced043efb23f077adfe9b576dcad (diff) | |
download | gcc-d7c321da9f8fdee4527285c782db57c7c4d520e4.zip gcc-d7c321da9f8fdee4527285c782db57c7c4d520e4.tar.gz gcc-d7c321da9f8fdee4527285c782db57c7c4d520e4.tar.bz2 |
Merge #1735
1735: macro: Allow builtin `MacroInvocation`s within the AST r=CohenArthur a=CohenArthur
gcc/rust/ChangeLog:
* ast/rust-macro.h (enum class): Add `BuiltinMacro` enum class
* expand/rust-attribute-visitor.cc (AttrVisitor::visit): Mention switching on `macro.kind` once builtin macro invocations are properly handled
* parse/rust-parse-impl.h (Parser::parse_macro_invocation): Switch to new MacroInvocation API
(Parser::parse_type): Switch to new MacroInvocation API
(Parser::parse_type_no_bounds): Switch to new MacroInvocation API
This will be necessary for proper handling of builtin macros with the new `EarlyNameResolver` class and associated fixed-point algorithm
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions