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: mechanism for taking/handling arbitrary rustc arguments? #46189

Closed
QuietMisdreavus opened this issue Nov 22, 2017 · 2 comments
Closed
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@QuietMisdreavus
Copy link
Member

Right now, rustdoc takes a handful of compilation-focused arguments so it can affect the compilation process it uses to extract docs or run tests. A discussion in #cargo today made me wonder if it was possible (or even feasible) to take arbitrary rustc arguments and have some way to parse those into the required structures or features needed for rustdoc's purposes as a compiler driver. Something like having -- and then batching everything that goes after that?

@rust-lang/compiler @rust-lang/dev-tools @rust-lang/t-dev-tools-docs

@QuietMisdreavus
Copy link
Member Author

The idea that brought this up was for Cargo to be able to supply $RUSTFLAGS to rustdoc by simply having the equivalent of rustdoc ... -- $RUSTFLAGS when executing rustdoc.

@QuietMisdreavus
Copy link
Member Author

Duplicate of #43031

@QuietMisdreavus QuietMisdreavus marked this as a duplicate of #43031 May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. 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

2 participants