-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Don't suggest &mut mut
#59699
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
Don't suggest &mut mut
#59699
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
r? @spastorino |
Can you add a UI test including the testcase from the original issue? |
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 |
&mut mut
; fixes rust-lang#57431
&mut mut
; fixes rust-lang#57431&mut mut
Comparing the code like this is a bad idea. Consider Take the above with a grain of salt, though, I'm not terribly familiar with this codebase. |
@NieDzejkob Yeah you are right. This is where we are discussing how to solve this issue. |
I'm going to go ahead and close this PR. The issue itself even says don't use regexp-matching, which includes as (a special case) string-matching as was done here. |
Don't suggest
&mut mut
for&mut &T
coerced to&T
; fixes #57431