Skip to content

#ast should only generate calls to the qquote module #2260

Closed
@brson

Description

@brson

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

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-syntaxextArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions