see this playground example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=ef85fe807b9e27cb5ffbf6e3a11a1b0c
The warnings generated with a regular enum are not created for a thiserror enum, making it quite hard to catch unused fields in errors. Is this expected ?
From what I can see, if it helps for debugging:
thiserror version 1.0.59 did produce these warnings. However there were no way to disable them (adding #[allow(unused)] to the whole enum, or to the variant did not make the warning go away)
Thanks for the work !