mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
f5c069c9d9
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> |
||
---|---|---|
.. | ||
base_db | ||
cfg | ||
flycheck | ||
hir | ||
hir_def | ||
hir_expand | ||
hir_ty | ||
ide | ||
ide_assists | ||
ide_completion | ||
ide_db | ||
ide_diagnostics | ||
ide_ssr | ||
limit | ||
mbe | ||
parser | ||
paths | ||
proc_macro_api | ||
proc_macro_srv | ||
proc_macro_test | ||
profile | ||
project_model | ||
rust-analyzer | ||
sourcegen | ||
stdx | ||
syntax | ||
test_utils | ||
text_edit | ||
toolchain | ||
tt | ||
vfs | ||
vfs-notify |