#ast should only generate calls to the qquote module #2260
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
A-syntaxext
Area: Syntax extensions
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
Milestone
The
#ast
extension generates code that makes calls to internal rustc APIs. Most of those calls are to functions in theqquote
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 instd::extfmt::rt
.The text was updated successfully, but these errors were encountered: