Improve E0637 suggestions for associated type bindings#156750
Conversation
|
@rustbot ready |
|
rustbot has assigned @nikomatsakis. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| None | ||
| } | ||
| }); | ||
| let suggestion = if self.diag_metadata.in_assoc_ty_binding { |
There was a problem hiding this comment.
Can you add a comment explaining the rationale here? Why does this if make sense? What is the output we are trying to produce? Why are we looking for a LifetimeRibKind::Generics below?
| self.point_at_impl_lifetimes(&mut err, i, lifetime.ident.span); | ||
| err.emit() | ||
| } | ||
| } else if self.diag_metadata.in_assoc_ty_binding { |
There was a problem hiding this comment.
Again, a comment -- I think it'd be great to have a code example and show what this is doing.
|
Reminder, once the PR becomes ready for a review, use |
|
@rustbot ready |
|
bors r+ |
|
bors didn't catch that, maybe because of the missing "@" |
This comment has been minimized.
This comment has been minimized.
will do a rebase rq |
d160492 to
f2dbc3d
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Fixes #156456
Fixes #122025
See #156456 (comment)