Skip to content

Integrate front::test and rustpkg into the syntax extension framework #4741

@brson

Description

@brson

Both --test and now rustpkg apply a type of syntax extension that is different from those in ext. These apply some global transformations, including replacing main, so they aren't applied by default. The test extension is actually a compiler pass that runs on all input, but it only does anything when in the test configuration--cfg test (indirectly by --test). rustpkg is similar but driven by the rustpkg command. I imagine there will be others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsA-testsuiteArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions