We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e73bd1 commit afaefeaCopy full SHA for afaefea
src/tools/compiletest/src/main.rs
@@ -975,7 +975,7 @@ fn extract_lldb_version(full_version_line: &str) -> Option<(u32, bool)> {
975
}
976
} else if let Some(lldb_ver) = full_version_line.strip_prefix("lldb version ") {
977
if let Some(idx) = lldb_ver.find(not_a_digit) {
978
- let version: u32 = lldb_ver[..idx].parse().unwrap();
+ let version: u32 = lldb_ver[..idx].parse().ok()?;
979
return Some((version * 100, full_version_line.contains("rust-enabled")));
980
981
0 commit comments