diff options
| author | Wilfred Hughes <wilfred@meta.com> | 2025-01-21 11:06:05 -0800 |
|---|---|---|
| committer | Wilfred Hughes <wilfred@meta.com> | 2025-01-21 11:07:07 -0800 |
| commit | c5ccf86e90428ce6fb601c27c3f2938099cbd120 (patch) | |
| tree | d148bb6da948edb0e95033a6ff42db5505e8193e /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | a238ab88f13654e85c2b48082b9ea77706ef50b1 (diff) | |
| download | rust-c5ccf86e90428ce6fb601c27c3f2938099cbd120.tar.gz rust-c5ccf86e90428ce6fb601c27c3f2938099cbd120.zip | |
internal: Treat cfg fetching failures as a warning
If the user doesn't have rustc on $PATH, rust-analyzer won't be able to run `rustc --print cfg`. This isn't really an error, as rust-analyzer can still proceed without it. This is particularly noticeable when loading crates defined in a rust-project.json. Until the configuration is loaded, the opened files are briefly treated as detached files and users see this error. Environments with rust-project.json generally have a sysroot and rustc elsewhere, so the error confuses users.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
