mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
f1fd4673bc
[`default_constructed_unit_structs`]: do not lint on type alias paths
Fixes #10755.
Type aliases cannot be used as a constructor, so this lint should not trigger in those cases.
I also changed `clippy_utils::is_ty_alias` to also consider associated types since [they kinda are type aliases too](
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |