-
Notifications
You must be signed in to change notification settings - Fork 293
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
Announce automatic checking of cfgs at compile-time #1313
Conversation
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
Co-authored-by: Nathan Stocks <cleancut@github.com>
rust-lang/rust#124684 was just merged, so the next nightly (nightly-2024-05-05 presumably) will include the change. |
03e1989
to
2682b15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
I've tested the latest nightly and it produces the right warnings. I also updated the diagnostics output to the latest update. This is now ready to be merged. |
7132e74
to
1337ead
Compare
Co-authored-by: Ed Page <eopage@gmail.com>
This post is emphatic that you can't disable this without a build.rs, but you can, by adding I think this is worth saying and would greatly reduce the amount of blowback from this change. |
Let's not derail this PR but it is written under "Frequently asked questions":
|
@Urgau I read the existing text, and I believe it is misleading. It says "cannot be disabled" with "cannot" emphasized, and shows how to make it a warning. A reader needs to infer that "cannot" is actually wrong and that you can change Furthermore, later in the post there is a FAQ entry about being able to disable the lint without build.rs, and again the text explicitly says that you can't do it. BTW, if it is "derailing the PR" to comment on the text of the blog post that this PR adds, then where are comments supposed to be posted? |
I see allowing the lint as disabling the effect of the feature but the feature is still there, Cargo is still passing the As for writing
Wrong wording on my part. I wanted to say not derailing the main thread of the PR, since they can become quite polluted over time, opening a thread would have been better, but it's fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This blog post announce automatic checking of cfgs at compile-time (rust-lang/rfcs#3013) by the Cargo (and Compiler) team.
To be merged when rust-lang/cargo#13571 (status: merged in Cargo, merged in rustc, is in nightly 🎉) reaches nightly.
Currently scheduled for 2024-05-06.