-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #654 - Enselic:rustdocflags, r=Mark-Simulacrum
Allow to specify `RUSTDOCFLAGS` independently Currently, if you to run this experiment: ``` cargo run -- define-ex --ex rustdoc-json-broken --mode rustdoc \ --cap-lints warn --crate-select list:serde \ "nightly-2022-06-01+rustflags=-Z unstable-options --output-format json" \ "nightly+rustflags=-Z unstable-options --output-format json" \ ``` crater will mix up `RUSTFLAGS` and `RUSTDOCFLAGS` and you will get the following error: ``` [INFO] [stderr] process didn't exit successfully: `rustc - --crate-name ___ \ --print=file-names --cap-lints=warn -Z unstable-options --output-format json \ --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib \ --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` \ (exit status: 1) [INFO] [stderr] --- stderr [INFO] [stderr] error: Unrecognized option: 'output-format' ``` Solve this by allowing `rustdoc` and `rustdocflags` to be specified independently. After this change, this works without unexpected errors: ``` cargo run -- define-ex --ex rustdoc-json-ice --mode rustdoc \ --cap-lints warn --crate-select list:serde \ "nightly-2022-06-01+rustdocflags=-Z unstable-options --output-format json" \ "nightly+rustdocflags=-Z unstable-options --output-format json" ``` Not sure if this change breaks compatibility in some way, but it seems like a rather generic and future-proof solution to me.
- Loading branch information
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters