diff options
| author | bors <bors@rust-lang.org> | 2022-04-16 10:37:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-16 10:37:28 +0000 |
| commit | 74cbc20fce38b0ef6c199fb22b51a6d389909ccb (patch) | |
| tree | e470dfaa3e59945d57a13af6e3be7a763602dd2a | |
| parent | 40396b463e5096af10a7480ddf1c3ba299b58d5f (diff) | |
| parent | 6f037da8cb836fb82e910d62261f0fda33b4a5de (diff) | |
| download | rust-74cbc20fce38b0ef6c199fb22b51a6d389909ccb.tar.gz rust-74cbc20fce38b0ef6c199fb22b51a6d389909ccb.zip | |
Auto merge of #12008 - Veykril:patch-1, r=Veykril
fix: Fix proc-macro change check being inverted
| -rw-r--r-- | crates/rust-analyzer/src/global_state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs index 9fc3e301991..5118c9756cc 100644 --- a/crates/rust-analyzer/src/global_state.rs +++ b/crates/rust-analyzer/src/global_state.rs @@ -227,7 +227,7 @@ impl GlobalState { let crates = raw_database.relevant_crates(file.file_id); let crate_graph = raw_database.crate_graph(); - crates.iter().any(|&krate| !crate_graph[krate].is_proc_macro) + crates.iter().any(|&krate| crate_graph[krate].is_proc_macro) }); true } |
