Skip to content

Conversation

UjwalReddyKotla
Copy link

This PR replaces the manual implementation of 'pick2_mut' and 'pick3_mut' in 'IndexSlice' with 'get_disjoint_mut', which provides a safer and more concise way to get multiple mutable references into the slice.

All relevant tests in 'rustc_index' pass, and 'tidy' checks have been verified.

@rustbot
Copy link
Collaborator

rustbot commented Mar 8, 2025

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 8, 2025
@BoxyUwU
Copy link
Member

BoxyUwU commented Mar 11, 2025

I think it'd make more sense to just replace pickN wholesale with a get_disjoint_mut on IndexSlice. Is there a reason you didn't opt to do that?

@BoxyUwU BoxyUwU added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 11, 2025
@bors
Copy link
Collaborator

bors commented Mar 12, 2025

☔ The latest upstream changes (presumably #138388) made this pull request unmergeable. Please resolve the merge conflicts.

@workingjubilee
Copy link
Member

already implemented here: #138372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants