Skip to content

RFC: Checking conditional compilation at compile time - #3013

Merged
ehuss merged 12 commits into
rust-lang:masterfrom
sivadeilra:user/ardavis/checked_cfg
Feb 23, 2021
Merged

ehuss merged 12 commits into
rust-lang:masterfrom
sivadeilra:user/ardavis/checked_cfg

Conversation

@sivadeilra

@sivadeilra sivadeilra commented Nov 4, 2020 •

Copy link
Copy Markdown
Contributor

This proposes a minor new feature for rustc and cargo, which will allow rustc to detect
invalid usage of #[cfg] conditions, such as misspelling a "feature" name.

The feature is purely opt-in. If the user doesn't enable this feature, then there is no impact on anything.
If the user does enable this feature, then the only possible impact is that rustc fires new diagnostics.
Language semantics, codegen, etc. are all unchanged.

Rendered

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This RFC is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this RFC. T-cargo Relevant to the Cargo team, which will review and decide on the RFC. T-compiler Relevant to the compiler team, which will review and decide on the RFC. to-announce

Projects

No open projects
Status: Implemented

Development

Successfully merging this pull request may close these issues.