-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: Rename --show-coverage
to --output-format coverage
(and coverage-json
)
#84012
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
Comments
--show-coverage
to --output-format coverage
(and coverage-json
)--show-coverage
to --output-format coverage
(and coverage-json
)
Hmm, My understanding from the discussion that this issue came from is that the user thought |
Being slow doesn't have anything to do with this. The reason I think we should rename it is because |
Yeah, I see how that could be confusing. But I find |
Something I'm sure I saw someone else mention ages ago, and which I really like, is to use |
I like that idea, but That said, I do like the idea of |
@camelid rustc --print does not compile your code.
|
It does for some uses of ~/foo
❯ rustc --print native-static-libs foo.rs
~/foo
❯ file foo
foo: Mach-O 64-bit executable x86_64 But it's good to know that there's some precedent for us having |
Right now,
--output-format
is greatly overloaded (as seen by #82497).--output-format json
is unstable, except when you use it with--show-coverage
. Also,--show-coverage
is not great at conveying that it stops documentation from being generated at all.I suggest that we rename
--show-coverage
to--output-format coverage
and--show-coverage --output-format json
to--output-format coverage-json
, deprecate the old uses for a few releases, and then remove them.The text was updated successfully, but these errors were encountered: