-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for RFC 3695: Allow boolean literals as cfg predicates #131204
Comments
Call for testingThis is call for testing regarding RFC3695: Allow boolean literals as cfg predicates. RFC 3695 adds support for Testing instructionsRequires:
Feedback
@rustbot label +call-for-testing |
Hi. This will appear in This Week in Rust issue #581 under "Call for Testing". You may remove the |
With a quick review:
[poc.rs:4:5] cfg!(true) = true
[poc.rs:5:5] cfg!(false) = false
[poc.rs:6:5] cfg!(r#true) = false
[poc.rs:7:5] cfg!(r#false) = false |
This comment has been minimized.
This comment has been minimized.
Works well here, behaving exactly as expected. |
This comment has been minimized.
This comment has been minimized.
Reference update at rust-lang/reference#1762 . |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@traviscross Good catch, yes, the FCP belongs on the PR. |
This is a tracking issue for the RFC "Allow boolean literals as cfg predicates" (rust-lang/rfcs/#3695).
The feature gate for the issue is
#![feature(cfg_boolean_literals)]
.About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Steps
cfg
predicates rfcs#3695cfg(true)
andcfg(false)
to conditional compilation (RFC 3695) reference#1762cfg_boolean_literals
#138632Unresolved Questions
None.
Related
The text was updated successfully, but these errors were encountered: