diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-04 13:06:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-04 13:06:51 +0000 |
| commit | f5c069c9d909dc13ca84415e228288a08b95df7d (patch) | |
| tree | d654732da06e81ec7b450ef59ccb8428f6a54428 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 46d7ee68f26285db26b2640f2c07d6332380c756 (diff) | |
| parent | 37d2a8243fc23d84490090803a428cf130894b6d (diff) | |
| download | rust-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 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
