diff options
| author | bors <bors@rust-lang.org> | 2023-05-26 15:20:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-05-26 15:20:21 +0000 |
| commit | f1fd4673bc997164efbf0ba30cef01ffba24a43f (patch) | |
| tree | 3e25bb771f2c291b523acab5f42061e9ee836775 /compiler/rustc_codegen_gcc | |
| parent | 2422594f8c457d0a6870af09922698548e3816a3 (diff) | |
| parent | 8c82486ea92219d1c0c720fc598abac27c81a966 (diff) | |
| download | rust-f1fd4673bc997164efbf0ba30cef01ffba24a43f.tar.gz rust-f1fd4673bc997164efbf0ba30cef01ffba24a43f.zip | |
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](https://github.com/rust-lang/rust/blob/48ec50ae39d0ca0baa0e78f56c395dcc6d7ebd65/compiler/rustc_resolve/src/late/diagnostics.rs#L1520). changelog: [`default_constructed_unit_structs`]: do not lint on type alias paths
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
