Skip to content
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

rustdoc should not require a file to display -Whelp #98001

Closed
matthiaskrgr opened this issue Jun 11, 2022 · 2 comments
Closed

rustdoc should not require a file to display -Whelp #98001

matthiaskrgr opened this issue Jun 11, 2022 · 2 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

$ rustc -Whelp
<lint list>

$ rustdoc -Whelp
error: missing file operand

You have to do something like rustdoc file.rs -Whelp in order to see the lint list which is a bit weird 😄 (it does not seem to actually process the file then at least...)

@matthiaskrgr matthiaskrgr added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jun 11, 2022
@GuillaumeGomez
Copy link
Member

Weirdly enough, it seems like we need to have a file to be able to run register_plugins in lib.rs::main_options. If we don't provide a file, the compiler doesn't allow us to build plugins. I think the reason behind this is that rustdoc should always be run with cargo which will always provide a file.

I'm not sure if it's worth fixing but just in case: do you think there is a way to fix this @rust-lang/compiler ?

@jyn514
Copy link
Member

jyn514 commented Jun 20, 2022

Duplicate of #88756 (which has an open PR if anyone wants to help take it over)

@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants