You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems, that starting from 1.70 Rust, the unused_qualifications became more clever and covers more code paths than it had done before. I wonder why the #[automatically_derived] attribute is not used in the macro expansions, which is used to handle most of such situations (modulo lint bugs)?
The text was updated successfully, but these errors were encountered:
Please complete the following tasks
Rust Version
rustc 1.70.0 (90c541806 2023-05-31)
Clap Version
4.3.1
Minimal reproducible code
Playground
Steps to reproduce the bug with the above code
cargo check
Actual Behaviour
Expected Behaviour
Compiles OK.
Additional Context
Appears starting from 1.70 Rust. On 1.69 Rust everything is OK.
Debug Output
If we run
cargo expand
on Playground, we would see the expansion like this:It seems, that starting from 1.70 Rust, the
unused_qualifications
became more clever and covers more code paths than it had done before. I wonder why the#[automatically_derived]
attribute is not used in the macro expansions, which is used to handle most of such situations (modulo lint bugs)?The text was updated successfully, but these errors were encountered: