Skip to content

fix compilation in future rust versions#1

Merged
WhyAreAllTheseTaken merged 1 commit into
WhyAreAllTheseTaken:masterfrom
WaffleLapkin:box-into-iter-compat
Jun 23, 2026
Merged

fix compilation in future rust versions#1
WhyAreAllTheseTaken merged 1 commit into
WhyAreAllTheseTaken:masterfrom
WaffleLapkin:box-into-iter-compat

Conversation

@WaffleLapkin

Copy link
Copy Markdown
Contributor

We are adding an IntoIterator implementation for Box<[T; N]> to the standard library, which breaks this crate (see rust-lang/rust#134021).

This PR fixes the issue.

@WhyAreAllTheseTaken WhyAreAllTheseTaken left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@WhyAreAllTheseTaken WhyAreAllTheseTaken merged commit 97dda5b into WhyAreAllTheseTaken:master Jun 23, 2026
2 checks passed
Comment thread src/lib.rs
type IntoIter = <[[T; M]; N] as IntoIterator>::IntoIter;

fn into_iter(self) -> Self::IntoIter {
self.data.into_iter()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately it also needs to be fixed here, there may be more places, I didn't go through all .into_iter() calls.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops. Filled #3

@WaffleLapkin WaffleLapkin deleted the box-into-iter-compat branch June 24, 2026 14:03
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.

3 participants