-
Notifications
You must be signed in to change notification settings - Fork 13k
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 const_intoiterator_identity
#90603
Comments
…-obk Unstably constify `impl<I: Iterator> IntoIterator for I` This constifies the default `IntoIterator` implementation under the `const_intoiterator_identity` feature. Tracking Issue: rust-lang#90603
Why would it have |
See #90602 (comment). |
Not sure I follow. |
It was a decision that could be changed later, so I just chose a choice and went with that. Either way, that's a question that can come up when the actual trait gets changed (or not) and const impls are stabilised. The motivation is that there was also no motivation to go the other way either. |
Yeah this feature was long removed, I just cleaned up some leftovers in that PR. |
Feature gate:
#![feature(const_intoiterator_identity)]
This is a tracking issue for the
const IntoIterator
implementation for types that are already iterators.This is not a new api; only constifying an existing one
Public API
Steps / History
impl<I: Iterator> IntoIterator for I
#90602Unresolved Questions
Iterator
being aconst Iterator
or not? I've gone with having the bound for now. Note: This can be relaxed later without breaking any code.The text was updated successfully, but these errors were encountered: