diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-04-25 00:11:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 00:11:03 +0200 |
| commit | f5837f83923ade04dfce20527fb1f571de2c4c82 (patch) | |
| tree | 1979fbc5d6eff8f77c14bffe679edc86b7101c74 | |
| parent | 433f1f425ee100adf2b8c454170bdee31df56670 (diff) | |
| parent | 68ef667b2e644a68c11d74991d5040b7833c128c (diff) | |
| download | rust-f5837f83923ade04dfce20527fb1f571de2c4c82.tar.gz rust-f5837f83923ade04dfce20527fb1f571de2c4c82.zip | |
Rollup merge of #96366 - jyn514:remove-dead-code, r=Mark-Simulacrum
bootstrap: 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: {:?}={:?} {:?}", |
