bors f1fd4673bc Auto merge of #10813 - y21:issue10755, r=xFrednet
[`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](48ec50ae39/compiler/rustc_resolve/src/late/diagnostics.rs (L1520)).

changelog: [`default_constructed_unit_structs`]: do not lint on type alias paths
2023-05-26 15:20:21 +00:00
..
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-21 15:07:53 +02:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-18 16:42:13 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 20:02:45 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 23:00:28 -04:00
2023-05-22 20:02:45 -04:00