diff options
| author | Dorian Scheidt <dorian.scheidt@gmail.com> | 2022-08-13 13:29:41 -0500 |
|---|---|---|
| committer | Dorian Scheidt <dorian.scheidt@gmail.com> | 2022-08-16 15:37:24 -0500 |
| commit | 39d17efde7d2da436f349c1b0ca55c37bae0254f (patch) | |
| tree | 3fbe786bb6c5c34632eb2b10c79ca5f6406ea2ad /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff | |
| parent | baa2cccb24023a246d4258b08ff4064c9169e67e (diff) | |
| download | rust-39d17efde7d2da436f349c1b0ca55c37bae0254f.tar.gz rust-39d17efde7d2da436f349c1b0ca55c37bae0254f.zip | |
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
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions
