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

Fix zero sizing of Iter<T> #63

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Fix zero sizing of Iter<T> #63

merged 1 commit into from
Aug 30, 2023

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Aug 30, 2023

---- test_iter stdout ----
thread 'test_iter' panicked at tests/test.rs:7:5:
assertion `left == right` failed
  left: 0
 right: 8
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    test_iter

It seems rust-lang/rust#115277 in nightly-2023-08-30 affected the size of this type as originally written.

    ---- test_iter stdout ----
    thread 'test_iter' panicked at tests/test.rs:7:5:
    assertion `left == right` failed
      left: 0
     right: 8
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

    failures:
        test_iter
@dtolnay dtolnay merged commit 52439cf into master Aug 30, 2023
14 checks passed
@dtolnay dtolnay deleted the zerosize branch August 30, 2023 04:09
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 this pull request may close these issues.

None yet

1 participant