Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎src/librustdoc/config.rs

Lines changed: 1 addition & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /