about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-04-04 13:06:51 +0000
committerGitHub <noreply@github.com>2022-04-04 13:06:51 +0000
commitf5c069c9d909dc13ca84415e228288a08b95df7d (patch)
treed654732da06e81ec7b450ef59ccb8428f6a54428 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent46d7ee68f26285db26b2640f2c07d6332380c756 (diff)
parent37d2a8243fc23d84490090803a428cf130894b6d (diff)
downloadrust-f5c069c9d909dc13ca84415e228288a08b95df7d.tar.gz
rust-f5c069c9d909dc13ca84415e228288a08b95df7d.zip
Merge #11894
11894: complete pattern args based on type name r=Veykril a=cameron1024

Addresses #11892 

Changes function argument completion to cover a case like this:
```rust
struct Foo { bar: i32 }

fn qux(Foo { bar }: Foo) {
  println!("{bar}");
}
```
When completing the function call for `qux`, instead of expanding to `qux(_)`, it will now expand to `qux(foo)` (based on the snake-cased version of the name of the ADT)

Non ADTs are unaffected


Co-authored-by: cameron <cameron.studdstreet@gmail.com>
Co-authored-by: cameron1024 <cameron.studdstreet@gmail.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions