Skip to content

rustc --emit=foo=file is not documented in rustc --help -v #139805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
clubby789 opened this issue Apr 14, 2025 · 1 comment · Fixed by #140077
Closed

rustc --emit=foo=file is not documented in rustc --help -v #139805

clubby789 opened this issue Apr 14, 2025 · 1 comment · Fixed by #140077
Assignees
Labels
A-CLI Area: Command-line interface (CLI) to the compiler A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@clubby789
Copy link
Contributor

clubby789 commented Apr 14, 2025

Similar to #139794, emitting to a file is not explained in --help. This is a little more complex to concisely explain than --print, since the different emit kinds interact differently with an output path.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Apr 14, 2025
@clubby789 clubby789 added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-CLI Area: Command-line interface (CLI) to the compiler and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Apr 14, 2025
@Urgau Urgau added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Apr 17, 2025
@xizheyin
Copy link
Contributor

@rustbot claim

jieyouxu added a commit to jieyouxu/rust that referenced this issue Apr 21, 2025
Construct OutputType using macro and print [=FILENAME] help info

Closes rust-lang#139805

Use define_output_types to define variants of OutputType, as well as refactor all of its methods for clarity. This way no variant is missed when pattern matching or output help messages.

On top of that, I optimized for `emit` help messages.

r? `@jieyouxu`
ChrisDenton added a commit to ChrisDenton/rust that referenced this issue Apr 21, 2025
Construct OutputType using macro and print [=FILENAME] help info

Closes rust-lang#139805

Use define_output_types to define variants of OutputType, as well as refactor all of its methods for clarity. This way no variant is missed when pattern matching or output help messages.

On top of that, I optimized for `emit` help messages.

r? ``@jieyouxu``
@bors bors closed this as completed in 2fff825 Apr 22, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Apr 22, 2025
Rollup merge of rust-lang#140077 - xizheyin:issue-139805, r=jieyouxu

Construct OutputType using macro and print [=FILENAME] help info

Closes rust-lang#139805

Use define_output_types to define variants of OutputType, as well as refactor all of its methods for clarity. This way no variant is missed when pattern matching or output help messages.

On top of that, I optimized for `emit` help messages.

r? ```@jieyouxu```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: Command-line interface (CLI) to the compiler A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants