Merge commit '0621446356' into clippy-subtree-update

This commit is contained in:
Philipp Krones 2025-04-22 16:10:59 +02:00
parent ed892e72dd
commit ff428d91c2
746 changed files with 13925 additions and 7188 deletions

View file

@ -161,3 +161,17 @@ fn main() {
let _ = <struct_from_macro!()>::default();
}
fn issue12654() {
#[derive(Default)]
struct G;
fn f(_g: G) {}
f(<_>::default());
f(G);
//~^ default_constructed_unit_structs
// No lint because `as Default` hides the singleton
f(<G as Default>::default());
}