rust-analyzer: code is inactive due to #[cfg] directives: test is disabled (inactive-code) #8377
Unanswered
cyanic-selkie
asked this question in
General
Replies: 1 comment
-
Is there any solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When using
rust-analyzer
as Rust's LSP, I keep getting this warning for all#[cfg(test)]
code. From what I understand,rust-analyzer
is supposed to include thetest
feature by default.My language configuration for Rust is:
I tried setting
allTargets
totrue
(which should betrue
by default anyway) andfeatures
toall
. However, it doesn't work. Any help is appreciated.My helix version is 23.05.
Beta Was this translation helpful? Give feedback.
All reactions