about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorWilfred Hughes <wilfred@meta.com>2025-01-21 11:06:05 -0800
committerWilfred Hughes <wilfred@meta.com>2025-01-21 11:07:07 -0800
commitc5ccf86e90428ce6fb601c27c3f2938099cbd120 (patch)
treed148bb6da948edb0e95033a6ff42db5505e8193e /compiler/rustc_codegen_llvm/src/errors.rs
parenta238ab88f13654e85c2b48082b9ea77706ef50b1 (diff)
downloadrust-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