Stream: t-compiler/rust-analyzer

Topic: How to have the #[cfg(not(test))] code active?


Geobomatic (Nov 25 2020 at 09:51, on Zulip):

Hi, the code marked as #[cfg(not(test))] is grayed out, and the #[cfg(test)] is normally rendered. How to achieve the opposite? I tried to uncheck the --all-targets option, with no luck :frown:

Paul Faria (Nov 30 2020 at 16:47, on Zulip):

Currently this isn't exposed as configurable yet. I've been working on this on and off and unfortunately haven't been able to put much time into it these past couple of weeks. I'll ramp up again this week

Last update: Jul 29 2021 at 10:00UTC