-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement lint for inherent to_string() method. #4259
Conversation
The CI build currently fails due to the removal of |
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.
Great work over all! Just a few NITs.
Thanks! (I just removed the merge commits by rebasing) @bors r+ |
📌 Commit b7145fb has been approved by |
Implement lint for inherent to_string() method. Fixes #4247 changelog: Implement two new lints: `inherent_to_string` and `inherent_to_string_shadow_display` 1) Emits a warning if a type implements an inherent method `to_string(&self) -> String` 2) Emits an error if a type implements an inherent method `to_string(&self) -> String` and also implements the `Display` trait
☀️ Test successful - checks-travis, status-appveyor |
Fixes #4247
changelog: Implement two new lints:
inherent_to_string
andinherent_to_string_shadow_display
to_string(&self) -> String
to_string(&self) -> String
and also implements theDisplay
trait