Skip to content

Commit fedfca7

Browse files
committed
Revert "bootstrap: do not purge docs on CI environment"
This reverts commit 6198e88.
1 parent e8418e0 commit fedfca7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: src/bootstrap/src/core/builder.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub use crate::Compiler;
2828
// - use std::lazy for `Lazy`
2929
// - use std::cell for `OnceCell`
3030
// Once they get stabilized and reach beta.
31-
use build_helper::ci::CiEnv;
3231
use clap::ValueEnum;
3332
use once_cell::sync::{Lazy, OnceCell};
3433

@@ -1274,12 +1273,7 @@ impl<'a> Builder<'a> {
12741273
self.clear_if_dirty(&out_dir, &backend);
12751274
}
12761275

1277-
if cmd == "doc"
1278-
|| cmd == "rustdoc"
1279-
// FIXME: We shouldn't need to check this.
1280-
// ref https://github.com/rust-lang/rust/issues/117430#issuecomment-1788160523
1281-
&& !CiEnv::is_ci()
1282-
{
1276+
if cmd == "doc" || cmd == "rustdoc" {
12831277
let my_out = match mode {
12841278
// This is the intended out directory for compiler documentation.
12851279
Mode::Rustc | Mode::ToolRustc => self.compiler_doc_out(target),

0 commit comments

Comments
 (0)