We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e8494f commit 926b5d2Copy full SHA for 926b5d2
src/librustdoc/config.rs
@@ -732,10 +732,7 @@ impl Options {
732
let target = parse_target_triple(early_dcx, matches);
733
let maybe_sysroot = matches.opt_str("sysroot").map(PathBuf::from);
734
735
- let sysroot = match &maybe_sysroot {
736
- Some(s) => s.clone(),
737
- None => rustc_session::filesearch::get_or_default_sysroot(),
738
- };
+ let sysroot = rustc_session::filesearch::materialize_sysroot(maybe_sysroot.clone());
739
740
let libs = matches
741
.opt_strs("L")
0 commit comments