From f0ba503f402c2b3d58012eecd2762d146deb9b26 Mon Sep 17 00:00:00 2001 From: Chayim Refael Friedman Date: Fri, 28 Nov 2025 06:26:13 +0200 Subject: [PATCH] Don't run cache priming when disabled in settings What a single operator precedence can do :) --- crates/rust-analyzer/src/main_loop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 7b339fa31bc2..8b4748ddb3d7 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs @@ -485,8 +485,8 @@ impl GlobalState { } // delay initial cache priming until proc macros are loaded, or we will load up a bunch of garbage into salsa let proc_macros_loaded = self.config.prefill_caches() - && !self.config.expand_proc_macros() - || self.fetch_proc_macros_queue.last_op_result().copied().unwrap_or(false); + && (!self.config.expand_proc_macros() + || self.fetch_proc_macros_queue.last_op_result().copied().unwrap_or(false)); if proc_macros_loaded { self.prime_caches_queue.request_op("became quiescent".to_owned(), ()); }