Add a way to conditionally compile things when a config item is _not_ present #1724
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A number of times I have wanted to use one function in one configuration in another in all other configurations. There's just no way to express this currently. A simple way to implement it would be with a
#[notcfg(...)]
attribute, which would just do the opposite of#[cfg(...)]
.The text was updated successfully, but these errors were encountered: