-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 allow-by-default lint when using item deprecated in the future #55892
Comments
This should be very straightforward to add by essentially copying what the current |
I'd like to take this issue! If I get struck, I'll ask on the discord channel. |
Awesome, and please do :) |
Sorry, I got quite busy in my studies. If anyone wants to take this issue in the meantime, please do! |
I would like to give this a try. |
Can i take this issue? |
I'm afraid it is already taken: #56203 |
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves rust-lang#55892
Add lint for items deprecated in future Resolves #55892
With #30785 resolved, there now is a way to deprecate an item "for the future". It would be nice to be able to e.g. clean libstd from using such future-deprecated items and then to make sure that future PRs will not re-introduce new uses of that item again. I am thinking, for example, of when we will deprecate
mem::uninitialized
in favor ofMaybeUninit
: Once we got rid of all its uses in some crate here, we'll want to make sure people not aware of this deprecation do not accidentally reintroduce new uses ofmem::uninitialized
in libstd.So maybe we could have an allow-by-default lint that libstd (and its dependencies) opt in to that complains about using items that are marked for future deprecation?
The text was updated successfully, but these errors were encountered: