-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for Rust 2024: Box<[T]>: IntoIter
#123759
Comments
Box<[T]> (and Box<[T; N]>) IntoIter
Box<[T]> (and Box<[T; N]>): IntoIter
…fleLapkin Add `IntoIterator` for `Box<[T]>` + edition 2024-specific lints * Adds a similar method probe opt-out mechanism to the `[T;N]: IntoIterator` implementation for edition 2021. * Adjusts the relevant lints (shadowed `.into_iter()` calls, new source of method ambiguity). * Adds some tests. * Took the liberty to rework the logic in the `ARRAY_INTO_ITER` lint, since it was kind of confusing. Based mostly off of rust-lang#116607. ACP: rust-lang/libs-team#263 References rust-lang#59878 Tracking for Rust 2024: rust-lang#123759 Crater run was done here: rust-lang#116607 (comment) Consensus afaict was that there is too much breakage, so let's do this in an edition-dependent way much like `[T; N]: IntoIterator`.
Based on the results of the crater run in #124108, it doesn't seem that needs the migration hack, so when that lands it will be insta-stable and not coupled to the edition. So we can pull that off the list. Consequently, all the remainder of this item needs now to be done is documentation. |
Note, that crater run was only for |
Right. |
Add `IntoIterator` for `Box<[T]>` + edition 2024-specific lints * Adds a similar method probe opt-out mechanism to the `[T;N]: IntoIterator` implementation for edition 2021. * Adjusts the relevant lints (shadowed `.into_iter()` calls, new source of method ambiguity). * Adds some tests. * Took the liberty to rework the logic in the `ARRAY_INTO_ITER` lint, since it was kind of confusing. Based mostly off of #116607. ACP: rust-lang/libs-team#263 References #59878 Tracking for Rust 2024: rust-lang/rust#123759 Crater run was done here: rust-lang/rust#116607 (comment) Consensus afaict was that there is too much breakage, so let's do this in an edition-dependent way much like `[T; N]: IntoIterator`.
This comment was marked as resolved.
This comment was marked as resolved.
Box<[T]> (and Box<[T; N]>): IntoIter
Box<[T]>: IntoIter
Add `IntoIterator` for `Box<[T]>` + edition 2024-specific lints * Adds a similar method probe opt-out mechanism to the `[T;N]: IntoIterator` implementation for edition 2021. * Adjusts the relevant lints (shadowed `.into_iter()` calls, new source of method ambiguity). * Adds some tests. * Took the liberty to rework the logic in the `ARRAY_INTO_ITER` lint, since it was kind of confusing. Based mostly off of #116607. ACP: rust-lang/libs-team#263 References #59878 Tracking for Rust 2024: rust-lang/rust#123759 Crater run was done here: rust-lang/rust#116607 (comment) Consensus afaict was that there is too much breakage, so let's do this in an edition-dependent way much like `[T; N]: IntoIterator`.
Docs are up at rust-lang/edition-guide#307. |
We've confirmed this issue is entirely ready for Rust 2024. Thanks to @compiler-errors and @clarfonthey for the implementation work here. |
This is a tracking issue for
Box<[T]>: IntoIter
in Rust 2024.About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Box<[T]>
.IntoIterator
forBox<[T]>
+ edition 2024-specific lints #124097Box<[T]>
.IntoIterator
forBox<[T]>
+ edition 2024-specific lints #124097Related items
Box<[T; N]>: IntoIterator
without any method dispatch hacks #124108Implementation history
IntoIterator
forBox<[T]>
+ edition 2024-specific lints #124097cc @rust-lang/libs-api @clarfonthey @jhpratt
The text was updated successfully, but these errors were encountered: