Implement lint for inherent to_string() method.#4259
Merged
bors merged 3 commits intorust-lang:masterfrom Jul 17, 2019
Darth-Revan:origin/inherent_to_string
Merged
Implement lint for inherent to_string() method.#4259bors merged 3 commits intorust-lang:masterfrom Darth-Revan:origin/inherent_to_string
bors merged 3 commits intorust-lang:masterfrom
Darth-Revan:origin/inherent_to_string
Conversation
Contributor
Author
|
The CI build currently fails due to the removal of |
flip1995
requested changes
Jul 13, 2019
Member
flip1995
left a comment
There was a problem hiding this comment.
Great work over all! Just a few NITs.
flip1995
reviewed
Jul 15, 2019
flip1995
approved these changes
Jul 17, 2019
Member
|
Thanks! (I just removed the merge commits by rebasing) @bors r+ |
Contributor
|
📌 Commit b7145fb has been approved by |
Contributor
bors
added a commit
that referenced
this pull request
Jul 17, 2019
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
Contributor
|
☀️ Test successful - checks-travis, status-appveyor |
This was referenced Jul 17, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4247
changelog: Implement two new lints:
inherent_to_stringandinherent_to_string_shadow_displayto_string(&self) -> Stringto_string(&self) -> Stringand also implements theDisplaytrait