-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
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
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsA-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.