-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Milestone
Description
The #ast
extension generates code that makes calls to internal rustc APIs. Most of those calls are to functions in the qquote
module itself, but some are to the parser. This makes changing these parser functions difficult, since the stage0 compiler will continue generating calls to the old function. Code generated by #ast
should use an obvious, qquote-specific API, and preferably shouldn't mention any types that exist outside of the qquote module.
For example, the types and functions used by #fmt
-generated code all live in std::extfmt::rt
.
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.