Skip to content

Commit f01355c

Browse files
committed
Specify that true/false should be accepted for cfg_attr and cfg!
1 parent 4defc8d commit f01355c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/3695-cfg_boolean_literal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ should be added to the explanation of the predicates.
4444

4545
`cfg(r#true)` and `cfg(r#false)` should continue to work as they did previously (i.e. enabled when `--cfg true`/`--cfg false` are passed).
4646

47+
`true` and `false` should be expected everywhere Configuration Predicates are used, i.e.
48+
- the `#[cfg(..)]` attribute
49+
- the `cfg!(..)` macro
50+
- the `#[cfg_attr(.., ..)]` attribute
51+
4752
# Drawbacks
4853
[drawbacks]: #drawbacks
4954

0 commit comments

Comments
 (0)