]> git.lizzy.rs Git - rust.git/commit
Auto merge of #13041 - DorianListens:dscheidt/gen-fn-self-assoc-2, r=Veykril
authorbors <bors@rust-lang.org>
Fri, 19 Aug 2022 10:57:02 +0000 (10:57 +0000)
committerbors <bors@rust-lang.org>
Fri, 19 Aug 2022 10:57:02 +0000 (10:57 +0000)
commit2f02ea03b0934095a142e904dd587e32bcf5f437
tree70bcc877e138023224ff7e51e830402309f2e815
parent62c31070650a9d3579f1aae6da3bcdc0bad02afc
parent48ea3825b8951a39e27503ea16cacc9147255d79
Auto merge of #13041 - DorianListens:dscheidt/gen-fn-self-assoc-2, r=Veykril

feat: Generate static method using Self::assoc() syntax

This change improves the `generate_function` assist to support generating static methods/associated functions using the `Self::assoc()` syntax. Previously, one could generate a static method, but only when specifying the type name directly (like `Foo::assoc()`). After this change, `Self` is supported as well as the type name.

Fixes #13012