-
-
Notifications
You must be signed in to change notification settings - Fork 15k
rustc --print=foo=file is not documented in rustc --help -v #139794
Copy link
Copy link
Closed
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-print-requestsArea: print requests (`--print=...`)Area: print requests (`--print=...`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-print-requestsArea: print requests (`--print=...`)Area: print requests (`--print=...`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I recently learned from @Urgau that one can use something like
rustc --print=cfg=file.txtto have rustc dump the output into a file rather than to stdout. This is mentioned in the rustc book but should also be documented inrustc --help -v.