Skip to content

Commit 5322428

Browse files
Rollup merge of #153705 - aerooneqq:delegation-impl-trait-generics, r=petrochenkov
Always generate generics in delegation that match trait in trait impl scenario After rust-lang/rust#151864 there is a change in delegation code generation in `trait impl` cases: after rust-lang/rust#151864 we started to look at user-specified args and generate functions, whose generics may not match the signature of the function that is defined in trait. Such handling of delegation from trait impl is not correct, as the generated function should always have the same generics as its signature function in trait. This addresses the "Fix generic params generation in trait impl case" future work from rust-lang/rust#151864 r? @petrochenkov
2 parents a57fc3a + 5f4c068 commit 5322428

0 file changed

File tree

    0 commit comments

    Comments
     (0)