Navigation Menu

Skip to content

Commit

Permalink
Ignore nonstandard lldb version strings in compiletest
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 12, 2021
1 parent 5e73bd1 commit afaefea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/main.rs
Expand Up @@ -975,7 +975,7 @@ fn extract_lldb_version(full_version_line: &str) -> Option<(u32, bool)> {
}
} else if let Some(lldb_ver) = full_version_line.strip_prefix("lldb version ") {
if let Some(idx) = lldb_ver.find(not_a_digit) {
let version: u32 = lldb_ver[..idx].parse().unwrap();
let version: u32 = lldb_ver[..idx].parse().ok()?;
return Some((version * 100, full_version_line.contains("rust-enabled")));
}
}
Expand Down

0 comments on commit afaefea

Please sign in to comment.