Deduplication: Extract a shared helper function to remove duplicate associated const binding lowering#155196
Conversation
|
HIR ty lowering was modified cc @fmease |
|
r? @jackh726 rustbot has assigned @jackh726. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Nit: |
|
As far as I know, the FIXME in the old |
This comment has been minimized.
This comment has been minimized.
7458605 to
c4c9ddc
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. |
This comment has been minimized.
This comment has been minimized.
|
Reminder, once the PR becomes ready for a review, use |
|
Btw, as an aside: it's not really needed or useful to include the code of the helpful function in the PR description - I went ahead and removed it. |
|
Thank you for the tip. I will keep that in mind next time. |
|
@bors r=jackh726 |
|
Requested reviewer is already assigned to this pull request. Please choose another assignee. |
|
@rustbot ready |
This PR aims to deduplicate the code the responsible for lowering the RHS of associated const bindings (found at
bounds.rsandmod.rs) by creating a helper functionlower_assoc_const_binding_rhs.Related: #150621