Skip to content

Commit 926b5d2

Browse files
committed
Use materialize_sysroot in rustdoc
1 parent 7e8494f commit 926b5d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/librustdoc/config.rs

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

735-
let sysroot = match &maybe_sysroot {
736-
Some(s) => s.clone(),
737-
None => rustc_session::filesearch::get_or_default_sysroot(),
738-
};
735+
let sysroot = rustc_session::filesearch::materialize_sysroot(maybe_sysroot.clone());
739736

740737
let libs = matches
741738
.opt_strs("L")

0 commit comments

Comments
 (0)