-
Notifications
You must be signed in to change notification settings - Fork 13k
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
#59808
Don't suggest &mut mut
#59808
Conversation
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
r? @spastorino |
&mut mut
@spastorino I have added a |
cd0c6a5
to
d543ae7
Compare
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 |
Yeah, continue in this direction. I'm not entirely sure if adding the attribute there is the best idea as we discussed on Zulip. Anyway, keep this going, now you need to assign coerced to true in the right spot and handle that in the diagnostics part :). |
Looking at the way this message is generated, I think that a larger change is probably deserved here.
|
@matthewjasper This is the the output of I have no idea how to make sense of what this means. Any help? |
The
|
I tried: Should I be doing something else? Looks like we cannot pretty print this! Can we? |
☔ The latest upstream changes (presumably #59114) made this pull request unmergeable. Please resolve the merge conflicts. |
There's no way to structurally pretty print. You can |
Alternatively you could look in Line 1868 in d4a32d5
Line 2159 in d4a32d5
Line 2302 in d4a32d5
Line 2475 in d4a32d5
|
r? @varkor, assigning you again because I don't have rights to merge. Anyway this is not ready :). |
@@ -828,7 +828,7 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> { | |||
match bm { | |||
ty::BindByReference(..) => | |||
mode.lub(BorrowingMatch), | |||
ty::BindByValue(..) => { | |||
ty::BindByValue{..} => { |
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.
ty::BindByValue{..} => { | |
ty::BindByValue { .. } => { |
(here and elsewhere)
Ping from triage @saleemjaffer, there's merge conflicts waiting to be resolved |
I'm going to close this PR since it seems to be inactive and incomplete. (If nothing else, it lacks a regression test.) as @matthewjasper said, we probably should try to resolve the problem of #57431 via a larger change. |
fixes #57431