Add lint for items deprecated in future#56203
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
r? @varkor |
There was a problem hiding this comment.
@varkor, should I rename this file to deprecation_in_future-lint.rs or something similar?
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
You probably have to add |
That explains it. Thank you! |
|
Sorry for taking a while to get back on this. If you could get rid of the unwrap by adding the |
|
☔ The latest upstream changes (presumably #56502) made this pull request unmergeable. Please resolve the merge conflicts. |
| if let Some(id) = id { | ||
| let path = self.item_path_str(def_id); | ||
| let message = format!("use of deprecated item '{}'", path); | ||
| if deprecation_in_effect(&since.as_str()) { |
There was a problem hiding this comment.
Sorry, I didn't notice before, but we need to make the same changes here. This warning is for deprecated items inside the standard library, etc. It should be affected by DEPRECATED_IN_FUTURE as well.
There was a problem hiding this comment.
No problem. Done in 5c79eab88e6e71134175a7dce9795c8f8f3f4949
If this is acceptable I'll squash the commits 😃
|
Thanks! Just one final comment (which is particularly important for addressing #55892). |
varkor
left a comment
There was a problem hiding this comment.
Great! r=me after the extra blank line is removed (it can be amended on to the previous commit).
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
|
@bors rollup- |
Add lint for items deprecated in future Resolves #55892
|
☀️ Test successful - status-appveyor, status-travis |
Resolves #55892