Skip to content

Add verbose option to rustdoc in order to fix problem with --version #20350

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

Merged
merged 1 commit into from
Dec 31, 2014

Conversation

fhahn
Copy link
Contributor

@fhahn fhahn commented Dec 30, 2014

Patch for #20340. rustdoc --version panics because it uses rustc_driver::version, which in turn checks the verbose flag, which was not defined for rustdoc. In this patch I have added a verbose flag to rustdoc, because I think it should be useful for other things besides --version.

Another possible fix would be to check if a verbose option was defined in rustc_driver or add an extra version function for rustdoc.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

Thanks!

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 31, 2014
Patch for rust-lang#20340. `rustdoc --version` panics because it uses `rustc_driver::version`, which in turn checks the `verbose` flag, which was not defined for rustdoc.  In this patch I have added a verbose flag to rustdoc, because I think it should be useful for other things besides --version.

Another possible fix would be to check if a verbose option was defined in `rustc_driver` or add an extra `version` function for rustdoc.
@bors bors merged commit c11e155 into rust-lang:master Dec 31, 2014
@fhahn fhahn deleted the issue-20340-rustdoc-version branch January 5, 2015 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants