Skip to content

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Jan 9, 2021

fixes: #5841
changelog: Added new lint: int_min_max_value

@rust-highfive
Copy link

r? @phansch

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 9, 2021
@phansch
Copy link
Contributor

phansch commented Jan 9, 2021

Thanks for the PR!

I remember that there was some movement on the rustc side to allow for proper soft-deprecation of those methods and constants, but can't find the issues/PRs right now. I'll take another look this weekend, but it might turn out that this added lint will be superseded by a rustc solution shortly after this lint hits stable. In that case, it would make sense to just wait for the rustc solution, instead of adding this lint to Clippy.

@Jarcho
Copy link
Contributor Author

Jarcho commented Jan 10, 2021

Looks like it's being worked on. A lint for future deprecations was added last month1, with the constants being deprecated that way at some point in the future2.

Closing this PR.

@Jarcho Jarcho closed this Jan 10, 2021
@phansch
Copy link
Contributor

phansch commented Jan 11, 2021

Thanks a lot for checking! I will go ahead and close our issue as well 👍

@Jarcho Jarcho deleted the int_min_max_value branch April 6, 2021 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lint for soft-deprecated {integer}::max_value and min_value
3 participants