]> git.ipfire.org Git - thirdparty/gcc.git/commit
Merge #1735
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 30 Jan 2023 12:44:25 +0000 (12:44 +0000)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 12:44:25 +0000 (12:44 +0000)
commitd7c321da9f8fdee4527285c782db57c7c4d520e4
treeba6531ab7ceea6caca1c74cf89cb219a9ce40c84
parent0ae13efb5a6383a3e7e22ceb064fa358038bd36f
parent3630e0e2bf0fced043efb23f077adfe9b576dcad
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>