-
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
impl Copy for Range<Idx> where Idx: Copy? #48649
Comments
Definitely possible, but there is a reason why it is currently not. |
Can't you implement iterator for &mut Range, and have Range itself be Copy? It would solve the lint problem, altho it's a breaking change and also requires you to use "for x in &mut a..b" I guess... |
Yeah that would be a breaking change (and not the kind that epochs enable). If we could remove the |
Against
|
Since we've consciously made this decision in the past I think a (small) RFC would be warranted. Closing. |
Would it be possible for Range<Idx> to be Copy if Idx is Copy?
The text was updated successfully, but these errors were encountered: