diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-04-24 14:53:49 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-04-24 14:53:49 -0500 |
| commit | 68ef667b2e644a68c11d74991d5040b7833c128c (patch) | |
| tree | e180b26a00db96beaf905f1d4a5967eef54588bf | |
| parent | c212fc4aa7719613e5254e9051ea03a93558fef4 (diff) | |
| download | rust-68ef667b2e644a68c11d74991d5040b7833c128c.tar.gz rust-68ef667b2e644a68c11d74991d5040b7833c128c.zip | |
Remove dead code in rustdoc shim
The `RUSTDOC_RESOURCE_SUFFIX` variable was never actually set.
| -rw-r--r-- | src/bootstrap/bin/rustdoc.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs index 0349277a36b..5f85fc5aa59 100644 --- a/src/bootstrap/bin/rustdoc.rs +++ b/src/bootstrap/bin/rustdoc.rs @@ -31,8 +31,8 @@ fn main() { let mut cmd = Command::new(rustdoc); - // I am not actually sure why it's necessary to pass the sysroot for `--test`, - // but `test --doc --stage 0` is broken without it :( + // cfg(bootstrap) + // NOTE: the `--test` special-casing can be removed when https://github.com/rust-lang/cargo/pull/10594 lands on beta. if target.is_some() || args.iter().any(|x| x == "--test") { // The stage0 compiler has a special sysroot distinct from what we // actually downloaded, so we just always pass the `--sysroot` option, @@ -65,13 +65,6 @@ fn main() { } } - // Needed to be able to run all rustdoc tests. - if let Some(ref x) = env::var_os("RUSTDOC_RESOURCE_SUFFIX") { - // This "unstable-options" can be removed when `--resource-suffix` is stabilized - cmd.arg("-Z").arg("unstable-options"); - cmd.arg("--resource-suffix").arg(x); - } - if verbose > 1 { eprintln!( "rustdoc command: {:?}={:?} {:?}", |
