File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::env;
2
2
#[ cfg( unix) ]
3
3
use std:: os:: unix:: process:: CommandExt ;
4
4
use std:: path:: PathBuf ;
5
- use std:: process:: { Command , Stdio } ;
5
+ use std:: process:: Command ;
6
6
7
7
fn main ( ) {
8
8
if env:: var ( "RUSTC_WRAPPER" ) . map_or ( false , |wrapper| wrapper. contains ( "sccache" ) ) {
@@ -33,14 +33,6 @@ fn main() {
33
33
rustdoc_flags. push_str ( sysroot. to_str ( ) . unwrap ( ) ) ;
34
34
env:: set_var ( "RUSTDOCFLAGS" , rustdoc_flags) ;
35
35
36
- let default_sysroot = Command :: new ( "rustc" )
37
- . stderr ( Stdio :: inherit ( ) )
38
- . args ( & [ "--print" , "sysroot" ] )
39
- . output ( )
40
- . unwrap ( )
41
- . stdout ;
42
- let default_sysroot = std:: str:: from_utf8 ( & default_sysroot) . unwrap ( ) . trim ( ) ;
43
-
44
36
// Ensure that the right toolchain is used
45
37
env:: set_var ( "RUSTUP_TOOLCHAIN" , env ! ( "RUSTUP_TOOLCHAIN" ) ) ;
46
38
You can’t perform that action at this time.
0 commit comments