Skip to content

WIP: IntoIterator for Box<[T]> + method dispatch mitigation for editions < 2024#116607

Closed
clarfonthey wants to merge 2 commits intorust-lang:masterfrom
clarfonthey:box-into-iter
Closed

WIP: IntoIterator for Box<[T]> + method dispatch mitigation for editions < 2024#116607
clarfonthey wants to merge 2 commits intorust-lang:masterfrom
clarfonthey:box-into-iter

Conversation

@clarfonthey
Copy link
Copy Markdown
Contributor

@clarfonthey clarfonthey commented Oct 10, 2023

ACP: rust-lang/libs-team#263
References #59878

Recommendation per ACP: this should receive a crater run to gauge impact. If there's no impact, it can be merged as-is, but otherwise it will need a similar edition-based workaround to the array implementation.

In addition to what was proposed by the ACP, this also adds IntoIterator for &Box<[T]> and IntoIterator for &mut Box<[T]> to ensure that those work as expected. I also already had to change at least one line in the compiler to account for this change, which isn't a good sign toward whether edition-specific mitigations may be needed, but we'll see.

Loading
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-lang Relevant to the language team T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.