Skip to content

Commit da1a483

Browse files
committed
Note that edition change would be required for alternative
1 parent e0fb5b1 commit da1a483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3695-cfg_boolean_literal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ By making it more convenient, this may encourage unconditionally disabled blocks
5252
# Rationale and alternatives
5353
[rationale-and-alternatives]: #rationale-and-alternatives
5454

55-
- This could instead be spelled as `cfg(disabled|enabled)`, or `cfg(none)` for disabling code only. However, giving special meaning to a valid identifier can change the meaning of existing code (although `check-cfg` warnings should reduce the impact of this)
55+
- This could instead be spelled as `cfg(disabled|enabled)`, or `cfg(none)` for disabling code only. However, giving special meaning to a valid identifier will change the meaning of existing code, requiring a new edition
5656
- As the existing predicates evaluate to booleans, using boolean literals is the most intuitive way to spell this
5757

5858
# Prior art

0 commit comments

Comments
 (0)