-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Suggest blanket impl to the local traits #97488
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nagisa (or someone else) soon. Please see the contribution instructions for more information. |
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.
Left some initial comments. Do you have examples of this lint in action? They should be added to somewhere in src/test/ui
, maybe src/test/ui/did_you_mean/
or src/test/ui/suggestions/
or src/test/ui/dyn-keyword/
.
See https://rustc-dev-guide.rust-lang.org/tests/adding.html#ui-test-walkthrough to learn how to add UI tests 😄 |
e7bd903
to
2bb3484
Compare
2bb3484
to
b98beeb
Compare
This comment has been minimized.
This comment has been minimized.
b98beeb
to
03e8d88
Compare
This comment has been minimized.
This comment has been minimized.
03e8d88
to
dff9d3f
Compare
This comment has been minimized.
This comment has been minimized.
814d9bc
to
dc4382f
Compare
This comment has been minimized.
This comment has been minimized.
1b059f1
to
2ed7900
Compare
This comment has been minimized.
This comment has been minimized.
src/test/ui/suggestions/suggest-blanket-impl-local-trait.stderr
Outdated
Show resolved
Hide resolved
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
e7e329f
to
772972f
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review |
e0c0b3b
to
234e7fd
Compare
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
234e7fd
to
835b7a5
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review |
Cool, thanks for making the change. @bors r+ |
📌 Commit 835b7a5 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#97488 (Suggest blanket impl to the local traits) - rust-lang#98585 (Make `ThinBox<T>` covariant in `T`) - rust-lang#98644 (fix ICE with -Wrust-2021-incompatible-closure-captures) - rust-lang#98739 (fix grammar in useless doc comment lint) - rust-lang#98741 (Many small deriving cleanups) - rust-lang#98756 (Use const instead of function and make it private) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This avoids accidental introduction (such as in rust-lang#97488).
Remove the rogue ./suggest-blanket-impl-local-trait This executable was added in rust-lang#97488, presumably just a `git add` mistake.
…n514 Lint against executable files in the root directory This avoids accidental introduction (such as in rust-lang#97488) of executable files into the root directory, not just under library/, src/ or compiler/. Resolves rust-lang#98792
This PR will add additional suggestion regarding the blanket implementation when it is possible, by generation a new help message + suggestion.
Closes #96076
Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com