@@ -41,7 +41,7 @@ use crate::core::{PackageId, Target};
41
41
use crate :: util:: errors:: { CargoResult , CargoResultExt , Internal , ProcessError } ;
42
42
use crate :: util:: machine_message:: Message ;
43
43
use crate :: util:: paths;
44
- use crate :: util:: { self , machine_message, process , ProcessBuilder } ;
44
+ use crate :: util:: { self , machine_message, ProcessBuilder } ;
45
45
use crate :: util:: { internal, join_paths, profile} ;
46
46
47
47
/// Indicates whether an object is for the host architcture or the target architecture.
@@ -636,12 +636,7 @@ fn rustdoc<'a, 'cfg>(cx: &mut Context<'a, 'cfg>, unit: &Unit<'a>) -> CargoResult
636
636
rustdoc. arg ( "--crate-name" ) . arg ( & unit. target . crate_name ( ) ) ;
637
637
add_path_args ( bcx, unit, & mut rustdoc) ;
638
638
add_cap_lints ( bcx, unit, & mut rustdoc) ;
639
-
640
- let mut can_add_color_process = process ( & * bcx. config . rustdoc ( ) ?) ;
641
- can_add_color_process. args ( & [ "--color" , "never" , "-V" ] ) ;
642
- if bcx. rustc . cached_success ( & can_add_color_process) ? {
643
- add_color ( bcx, & mut rustdoc) ;
644
- }
639
+ add_color ( bcx, & mut rustdoc) ;
645
640
646
641
if unit. kind != Kind :: Host {
647
642
if let Some ( ref target) = bcx. build_config . requested_target {
0 commit comments