-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add future-incompat warning against keywords in cfgs and add raw-idents #14671
base: master
Are you sure you want to change the base?
Conversation
aa8bb59
to
0569db6
Compare
0569db6
to
7b3512f
Compare
7b3512f
to
dd334dd
Compare
@rfcbot fcp merge This PR adds a future-incompat warning for the use of The main focus of this FCP is insta-stabilizing support for raw identifiers (e.g. |
Team member @epage has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
I'm not quite sure I understand the wording of the error message. Saying Would it be possible to change the wording to be something more like:
|
dd334dd
to
ff762d8
Compare
Yes, Changed the wording as suggest. |
ff762d8
to
0121d31
Compare
0121d31
to
363c9b7
Compare
What does this PR try to resolve?
This PR tries to address this thread #14649 (comment) in #14649 regarding
cfg(true)
/cfg(false)
(and keywords more generally) which are wrongly accepted1 as ident.To address this, this PR does two things:
r#true
) add suggest-it in the warningHow should we test and review this PR?
This PR should be reviewed commit-by-commit.
Tests are included in preliminary commits.
Additional information
I added a new struct for representing
Ident
s which is rawness aware.Which implied updating
cargo-platform
to0.2.0
due to the API changes.r? @epage
Footnotes
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=ccfb9c894dbf14e791c8ae7e4798efd0 ↩