about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-07 17:09:20 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-12 15:05:25 +0000
commit7e8494f0a511d9374d96fb741efebb3ea71957fd (patch)
treeafed43c2ef6dcf058b826906cd503d6577e346e4 /compiler/rustc_codegen_ssa/src/back
parent0a679514d41443329c183110a4142e6813bc4307 (diff)
downloadrust-7e8494f0a511d9374d96fb741efebb3ea71957fd.tar.gz
rust-7e8494f0a511d9374d96fb741efebb3ea71957fd.zip
Don't return an error from get_or_default_sysroot
All callers unwrap the result.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 7d9971c021d..62ed880478b 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1286,8 +1286,7 @@ fn link_sanitizer_runtime(
         if path.exists() {
             sess.target_tlib_path.dir.clone()
         } else {
-            let default_sysroot =
-                filesearch::get_or_default_sysroot().expect("Failed finding sysroot");
+            let default_sysroot = filesearch::get_or_default_sysroot();
             let default_tlib =
                 filesearch::make_target_lib_path(&default_sysroot, sess.opts.target_triple.tuple());
             default_tlib