File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ 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 ;
3132use clap:: ValueEnum ;
3233use once_cell:: sync:: { Lazy , OnceCell } ;
3334
@@ -1273,7 +1274,12 @@ impl<'a> Builder<'a> {
12731274 self . clear_if_dirty ( & out_dir, & backend) ;
12741275 }
12751276
1276- if cmd == "doc" || cmd == "rustdoc" {
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+ {
12771283 let my_out = match mode {
12781284 // This is the intended out directory for compiler documentation.
12791285 Mode :: Rustc | Mode :: ToolRustc => self . compiler_doc_out ( target) ,
You can’t perform that action at this time.
0 commit comments