-
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
default_trait_access: Fix wrong suggestion #5993
Conversation
r? @phansch (rust_highfive has picked a reviewer for you, use r? to override) |
error: calling `GenericDerivedDefault<std::string::String>::default()` is more clear than this expression | ||
--> $DIR/default_trait_access.rs:28:46 | ||
error: calling `GenericDerivedDefault::default()` is more clear than this expression | ||
--> $DIR/default_trait_access.rs:31:46 | ||
| | ||
LL | let s11: GenericDerivedDefault<String> = Default::default(); | ||
| ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault<std::string::String>::default()` | ||
| ^^^^^^^^^^^^^^^^^^ help: try: `GenericDerivedDefault::default()` |
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.
We already had a test for this, but it seems that the broken suggestion was missed.
@bors r+ thanks! |
📌 Commit 8b0aa6a has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
#5975 (comment)
Fixes #5975 Fixes #5990
changelog:
default_trait_access
: fixed wrong suggestion