Skip to content

Commit c61439c

Browse files
committed
Use materialize_sysroot in rustdoc
1 parent ccee898 commit c61439c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustdoc/config.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -729,10 +729,7 @@ impl Options {
729729
let target = parse_target_triple(early_dcx, matches);
730730
let maybe_sysroot = matches.opt_str("sysroot").map(PathBuf::from);
731731

732-
let sysroot = match &maybe_sysroot {
733-
Some(s) => s.clone(),
734-
None => rustc_session::filesearch::get_or_default_sysroot(),
735-
};
732+
let sysroot = rustc_session::filesearch::materialize_sysroot(maybe_sysroot);
736733

737734
let libs = matches
738735
.opt_strs("L")

0 commit comments

Comments
 (0)