Skip to content
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

into_iter().rev() on a ZST hangs #101235

Closed
RalfJung opened this issue Aug 31, 2022 · 3 comments · Fixed by #101237
Closed

into_iter().rev() on a ZST hangs #101235

RalfJung opened this issue Aug 31, 2022 · 3 comments · Fixed by #101237

Comments

@RalfJung
Copy link
Member

The following code works fine on stable but hangs in current nightly:

fn main() {
    for _ in vec![[0u64; 0]].into_iter().rev() {}
}

This started with #101152.

@RalfJung
Copy link
Member Author

#101237 fixes this.

RalfJung added a commit to RalfJung/rust that referenced this issue Aug 31, 2022
fix into_iter on ZST

Fixes rust-lang#101235
Thanks to `@ChrisDenton` for [spotting the problem](rust-lang#100819 (review)).
@matthiaskrgr
Copy link
Member

Was this only able to merge because miri was already broken at that time? 😅

@RalfJung
Copy link
Member Author

Kind of -- it would always have been merged, but it would have triggered notifications due to breaking Miri.

workingjubilee pushed a commit to tcdi/postgrestd that referenced this issue Sep 15, 2022
fix into_iter on ZST

Fixes rust-lang/rust#101235
Thanks to `@ChrisDenton` for [spotting the problem](rust-lang/rust#100819 (review)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants