about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-04-12 09:47:06 -0700
committerManish Goregaokar <manishsmail@gmail.com>2021-04-12 09:48:56 -0700
commitafaefea17e96b3aa7f7eb00fd0791e8fd187bc26 (patch)
tree47fc2e01a43d934fca9e6a3b9737aee8174e3e5c /src
parent5e73bd1040138f49200ce292eb109d3c8fd9a9cc (diff)
downloadrust-afaefea17e96b3aa7f7eb00fd0791e8fd187bc26.tar.gz
rust-afaefea17e96b3aa7f7eb00fd0791e8fd187bc26.zip
Ignore nonstandard lldb version strings in compiletest
Diffstat (limited to 'src')
-rw-r--r--src/tools/compiletest/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index 48091601861..d1798a52df7 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -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")));
         }
     }