-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 by-value array iterator (feature array_value_iter
)
#65798
Comments
This comment has been minimized.
This comment has been minimized.
For an IntoIterator impl we should probably issue warnings as soon as possible (not just via clippy). |
Can we even stabilize this before stabilizing const generics? No, right? Because the public API clearly contains parts of const generics. Or is it possible to stabilize because the only way programmers can interact with the type is not dependent on const generics? Also: could we add the |
Right, unlike impls like for example |
@SimonSapin Just to be sure I understand you correctly, what is your answer to this question?
Using the impl without |
My previous comment was saying that we cannot stabilize a Additionally, cross-posting from #65819 (comment): With my Libs team hat on: I’d be uncomfortable stabilizing a method that returns an unstable type. Yes this does mean blocking array by-value iterators on const generics. (Or stabilizing an array trait and a const-generics-free iterator type.)
F-const_generics
|
The Is the |
I think it would be strange if |
Have we done any crater runs recently on where the lint has landed us? If not, would anybody be interested in opening up an experimental PR to check? |
The last crater run AFAIK was this one. The problem is that crater doesn't seem to update the It would be really beneficial if we could update (or remove) the If you want to run crater again, I can just update my PR again. Or are you mentioning "experimental PR" to reduce noise on the main PR? |
This is unblocked! #79135 has landed. What remains here is to decide how should one obtain an
|
Tracking issue: rust-lang#65798 This is unblocked now that `min_const_generics` has been stabilized in rust-lang#79135. This PR does *not* include the corresponding `IntoIterator` impl, which is rust-lang#65819. Instead, an iterator can be constructed through the `new` method. `new` would become unnecessary when `IntoIterator` is implemented and might be deprecated then, although it will stay stable.
@scottmcm weighed in on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/array.20by-value.20iterator.20stabilization/near/221116093
Sounds good to me. I’ve submitted a stabilization PR and requested FCP: #80470 |
…rray)` rust-lang/rust#74878 and rust-lang/rust#65798 were both stabilized in 1.51.
…rray)` rust-lang/rust#74878 and rust-lang/rust#65798 were both stabilized in 1.51.
…rray)` rust-lang/rust#74878 and rust-lang/rust#65798 were both stabilized in 1.51.
This is a tracking issue for
core::array::IntoIter
. Implemented in #62959.Blocked by:
Unresolved questions:
IntoIterator
impl for arrays? (see AddIntoIterator
impl for arrays by value (for [T; N]
) #65819 to discuss)owned_iter
to arrays (returningarray:IntoIter
) ?The text was updated successfully, but these errors were encountered: