mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Don't return an error from get_or_default_sysroot
All callers unwrap the result.
This commit is contained in:
@@ -734,9 +734,7 @@ fn println_condition(condition: Condition) {
|
||||
|
||||
let sysroot = match &maybe_sysroot {
|
||||
Some(s) => s.clone(),
|
||||
None => {
|
||||
rustc_session::filesearch::get_or_default_sysroot().expect("Failed finding sysroot")
|
||||
}
|
||||
None => rustc_session::filesearch::get_or_default_sysroot(),
|
||||
};
|
||||
|
||||
let libs = matches
|
||||
|
||||
Reference in New Issue
Block a user