From 7fd625323459ac1b57895a3832e5c640f750ddd7 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Wed, 15 May 2024 13:25:29 +0200 Subject: [PATCH] fix(rust-analyzer): disable "poking" `rust-analyzer` uses `CFG_RELEASE` env var to determine, whether it should "poke" users on failures - this feature is meant for rust-analyzer developers only, which is a different target audience than expected users of this flake See: - https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/build.rs#L9-L11 - https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/src/lsp/utils.rs#L99-L116 Signed-off-by: Roman Volosatovs --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index e95af3a8..53d93489 100644 --- a/default.nix +++ b/default.nix @@ -172,6 +172,8 @@ nightlyToolchains.${v} // rec { ]; doCheck = false; CARGO_INCREMENTAL = 0; + # ensure `rust-analyzer` is built in release mode https://github.com/rust-lang/rust-analyzer/blob/8772b865c913afd1510f69649f238b0f31eace3d/crates/rust-analyzer/build.rs#L9 + CFG_RELEASE = 1; RUST_ANALYZER_REV = rust-analyzer-rev; meta = { maintainers = with maintainers; [ figsoda ];