about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-07 17:12:42 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-12 15:05:25 +0000
commit926b5d2e4f8cbd6c5807efb18823e49e793002e3 (patch)
tree7e8ab773006025c9a6df342df8bf215651a7f64c
parent7e8494f0a511d9374d96fb741efebb3ea71957fd (diff)
downloadrust-926b5d2e4f8cbd6c5807efb18823e49e793002e3.tar.gz
rust-926b5d2e4f8cbd6c5807efb18823e49e793002e3.zip
Use materialize_sysroot in rustdoc
-rw-r--r--src/librustdoc/config.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index 8161fb102ea..23a2bcd9011 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -732,10 +732,7 @@ impl Options {
         let target = parse_target_triple(early_dcx, matches);
         let maybe_sysroot = matches.opt_str("sysroot").map(PathBuf::from);
 
-        let sysroot = match &maybe_sysroot {
-            Some(s) => s.clone(),
-            None => rustc_session::filesearch::get_or_default_sysroot(),
-        };
+        let sysroot = rustc_session::filesearch::materialize_sysroot(maybe_sysroot.clone());
 
         let libs = matches
             .opt_strs("L")