Repository navigation
Conversation
3cb20ed to
77719b9
Compare
This comment has been minimized.
This comment has been minimized.
403c96e to
36b8615
Compare
|
r? @mu001999 rustbot has assigned @mu001999. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rustbot reroll |
|
@rustbot reroll |
|
@rustbot reroll |
|
Picking a reviewer who knows more about higher-ranked lifetimes than me: |
|
|
This comment has been minimized.
This comment has been minimized.
36b8615 to
4aa9193
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. |
Closes #123713
The previous code suggest adding a higher-ranked lifetime
for<'a>for regular case and explicit lifetime'afor associated type. But it didn't check whether the lifetime'ais already occupied and it never suggest the user to use the existing lifetime.I think that it might be better if we put the diagnostics code for error
E0637together withE0106in the same functionadd_missing_lifetime_specifiers_label, since they share some same logic.The current code behaves differently when there are lifetimes in scope:
for<'a>(regular case) or'a(associated type)The help message of introducing HRTB changed to the same with
E0106.