Skip to content

Conversation

@jieyouxu
Copy link
Contributor

See rust-lang/rust#60210 for more context. This has been a future-incompatibility warning since Rust 1.27, where tuple index subexpressions with invalid suffixes (in this case, .0usize) was erroneously accidentally accepted. This will become a hard error in Rust 1.91 after rust-lang/rust#145463 rejects the remaining carve-outs.

You can verify the fix by running cargo +beta test. Without this PR, the unnamed test will currently fail to compile against 1.91 beta. With this PR, the unnamed test will successfully compile.

rustc 1.91.0-beta.9 (1f2519788 2025-10-17)

See <rust-lang/rust#60210> for more context.
This has been a future-incompatibility warning since Rust 1.27, where
tuple index subexpressions with invalid suffixes (in this case,
`.0usize`) was erroneously accidentally accepted. This will become a
hard error in Rust 1.91.
Copy link
Owner

@francesca64 francesca64 left a comment

Choose a reason for hiding this comment

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

Thank you!

@riking
Copy link

riking commented Oct 24, 2025

Note: You have approved the PR, but you still need to merge it 🙂

@francesca64 francesca64 merged commit c0df4e4 into francesca64:mistress Oct 25, 2025
@jieyouxu jieyouxu deleted the fix-tuple-index branch November 9, 2025 17:00
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