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 --all. Without this PR, the convey_derive/tests/structs.rs tests currently fail to compile against 1.91 beta. With this PR, the 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 after
<rust-lang/rust#145463> rejects the remaining
carve-outs.
@killercup
Copy link
Owner

Thanks! I doubt anyone is using this crate but I'll gladly merge a fix and push a release if a user wants it

@killercup killercup merged commit f4c48ec into killercup:master Oct 22, 2025
@jieyouxu jieyouxu deleted the fix-tuple-index branch October 22, 2025 15:40
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.

2 participants