Stabilize --crate-version option in rustdoc

This commit is contained in:
Guillaume Gomez
2020-02-26 22:08:59 +01:00
parent abc3073c92
commit c57de34e8f
5 changed files with 14 additions and 19 deletions

View File

@@ -52,12 +52,7 @@ fn main() {
// Bootstrap's Cargo-command builder sets this variable to the current Rust version; let's pick
// it up so we can make rustdoc print this into the docs
if let Some(version) = env::var_os("RUSTDOC_CRATE_VERSION") {
// This "unstable-options" can be removed when `--crate-version` is stabilized
if !has_unstable {
cmd.arg("-Z").arg("unstable-options");
}
cmd.arg("--crate-version").arg(version);
has_unstable = true;
}
// Needed to be able to run all rustdoc tests.