mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Rollup merge of #117533 - onur-ozkan:revert-117471, r=onur-ozkan
Revert "bootstrap: do not purge docs on CI environment"
This reverts commit 6198e881d3
.
ref https://github.com/rust-lang/rust/issues/117430#issuecomment-1791609163, https://github.com/rust-lang/rust/pull/117471#issuecomment-1791937529
This commit is contained in:
commit
c0fa97c3d6
@ -28,7 +28,6 @@ pub use crate::Compiler;
|
||||
// - use std::lazy for `Lazy`
|
||||
// - use std::cell for `OnceCell`
|
||||
// Once they get stabilized and reach beta.
|
||||
use build_helper::ci::CiEnv;
|
||||
use clap::ValueEnum;
|
||||
use once_cell::sync::{Lazy, OnceCell};
|
||||
|
||||
@ -1275,12 +1274,7 @@ impl<'a> Builder<'a> {
|
||||
self.clear_if_dirty(&out_dir, &backend);
|
||||
}
|
||||
|
||||
if cmd == "doc"
|
||||
|| cmd == "rustdoc"
|
||||
// FIXME: We shouldn't need to check this.
|
||||
// ref https://github.com/rust-lang/rust/issues/117430#issuecomment-1788160523
|
||||
&& !CiEnv::is_ci()
|
||||
{
|
||||
if cmd == "doc" || cmd == "rustdoc" {
|
||||
let my_out = match mode {
|
||||
// This is the intended out directory for compiler documentation.
|
||||
Mode::Rustc | Mode::ToolRustc => self.compiler_doc_out(target),
|
||||
|
Loading…
Reference in New Issue
Block a user