diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2025-06-30 14:46:53 +0100 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2025-07-04 16:55:53 +0100 |
| commit | e779ea0ea7b39c235baac816772829111e61511b (patch) | |
| tree | 2c7ba048d1c6d9cb73975ae2dc4cd28def04f2ea /compiler/rustc_codegen_llvm/src | |
| parent | 4b506ca0e1821e71fd8a6c7434dc02b5bd432a34 (diff) | |
| download | rust-e779ea0ea7b39c235baac816772829111e61511b.tar.gz rust-e779ea0ea7b39c235baac816772829111e61511b.zip | |
fix: Avoid .unwrap() when running the discover command
Previously, the following configuration in settings.json:
"rust-analyzer.workspace.discoverConfig": {
"command": [
"oops",
"develop-json",
"{arg}"
],
"progressLabel": "rust-analyzer",
"filesToWatch": [
"BUCK",
"TARGETS"
]
},
Would previously cause a crash in rust-analyzer:
thread 'LspServer' panicked at crates/rust-analyzer/src/main_loop.rs:776:84:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Instead, use more specific panic messages.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
