about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-05 09:48:46 +0000
committerbors <bors@rust-lang.org>2018-11-05 09:48:46 +0000
commit6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1 (patch)
tree00f3540234142caf99fa78c0c04fcbf11d6ad154 /src/rustllvm/PassWrapper.cpp
parent56ac2c4fc3a287c189abb2db5fd26a53f30ef9e7 (diff)
parent560a01c795923d7ae9e4dafa8bce7261d6450ade (diff)
downloadrust-6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1.tar.gz
rust-6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1.zip
Auto merge of #55515 - QuietMisdreavus:rustdoc-config, r=GuillaumeGomez
rustdoc: refactor: centralize all command-line argument parsing

This is something i've wanted to do for a while, since we keep having to add new arguments to places like `rust_input` or `core::run_core` whenever we add a new CLI flag or the like. Those functions have inflated up to 11-19, and in some cases hiding away the locations where some CLI flags were being parsed, obscuring their use. Now, we have a central place where all command-line configuration occurs, including argument validation.

One note about the design: i grouped together all the arguments that `html::render::run` needed, so that i could pass them on from compilation in one lump instead of trying to thread through individual items or clone the entire blob ahead of time.

One other thing this adds is that rustdoc also now recognizes all the `-Z` options that rustc does, since we were manually grabbing a few previously. Now we parse a full `DebuggingOptions` struct and hand it directly to rustc when scraping docs.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions