File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ fn main() {
27
27
Err ( _) => 0 ,
28
28
} ;
29
29
30
- let mut dylib_path = dylib_path ( ) ;
31
- dylib_path. insert ( 0 , PathBuf :: from ( libdir. clone ( ) ) ) ;
32
-
33
30
let mut cmd = Command :: new ( rustdoc) ;
34
31
35
32
if target. is_some ( ) {
@@ -42,7 +39,7 @@ fn main() {
42
39
}
43
40
44
41
cmd. args ( & args) ;
45
- cmd. env ( dylib_path_var ( ) , env :: join_paths ( & dylib_path ) . unwrap ( ) ) ;
42
+ cmd. env ( dylib_path_var ( ) , PathBuf :: from ( libdir . clone ( ) ) ) ;
46
43
47
44
// Force all crates compiled by this compiler to (a) be unstable and (b)
48
45
// allow the `rustc_private` feature to link to other unstable crates
@@ -78,7 +75,7 @@ fn main() {
78
75
eprintln ! (
79
76
"rustdoc command: {:?}={:?} {:?}" ,
80
77
dylib_path_var( ) ,
81
- env :: join_paths ( & dylib_path ) . unwrap ( ) ,
78
+ PathBuf :: from ( libdir . clone ( ) ) ,
82
79
cmd,
83
80
) ;
84
81
eprintln ! ( "sysroot: {:?}" , sysroot) ;
You can’t perform that action at this time.
0 commit comments