-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Tracking Issue for rustc --check-cfg integration #10554
Copy link
Copy link
Closed
Labels
A-check-cfgArea: check-cfgArea: check-cfgC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.T-cargoTeam: CargoTeam: Cargodisposition-mergeFCP with intent to mergeFCP with intent to mergefinished-final-comment-periodFCP completeFCP complete
Metadata
Metadata
Assignees
Labels
A-check-cfgArea: check-cfgArea: check-cfgC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.T-cargoTeam: CargoTeam: Cargodisposition-mergeFCP with intent to mergeFCP with intent to mergefinished-final-comment-periodFCP completeFCP complete
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Status
FCP merge
Summary
RFC: #3013
rustc tracking issue: rust-lang/rust#82450
Documentation:
This tracks the integration of rustc
--check-cfgflag (RFC #3013), which enables complete or partial checking of conditional compilation configuration at compile time.Unresolved Issues
--check-cfginvocations with zero features #13011).Post-RFC decisions
cargo:rustc-check-cfgdespite::being introduced in 1.77 and this being released after that. This was done to allow for wider MSRVs while using this featureFuture Extensions
No response
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.
Implementation history:
rustc-check-cfgbuild script output #10539-Zcheck-cfgfor new rustc syntax and behavior #12845-Zcheck-cfgwarnings #12884--check-cfginvocations with zero features #13011-Zcheck-cfg#13012values()when no features are declared #13316