Skip to content

Conversation

@jieyouxu
Copy link

@jieyouxu jieyouxu commented Oct 22, 2025

Fixes #1.

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 clamper_options/sort_options validate derives currently fail to compile against 1.91 beta. With this PR, the derives 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.
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.

FYI: Invalid suffix on tuple indexing

1 participant