rust/crates
bors f3cce5feea Auto merge of #13365 - feniljain:master, r=Veykril
feat: add multiple getters mode in `generate_getter`

This commit adds two modes to generate_getter action.
First, the plain old working on single fields.
Second, working on a selected range of fields.

Should partially solve #13246
If this gets approved will create a separate PR for setters version of the same

### Points to help in review:

- `generate_getter_from_record_info` contains code which is mostly taken from assist before refactor
- Same goes for `parse_record_fields`
- There are changes in other assists, as one of the methods in utils named `find_struct_impl` is changed, before it used to accept a single `fn_name`, now it takes a list of function names to check against. All old impls are updated to create a small list to pass their single element.

### Assumptions:

- If any of the fields have an implementation, the action will quit.
2022-10-20 12:07:28 +00:00
..
base-db formatting 2022-09-26 18:35:06 +01:00
cfg Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
flycheck Remove simplistic interpolation for manifest-path 2022-10-19 23:53:00 +02:00
hir Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
hir-def Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
hir-expand Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
hir-ty Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
ide Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
ide-assists feat: add multiple getters mode in generate_getter 2022-10-20 16:47:23 +05:30
ide-completion Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
ide-db Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
ide-diagnostics Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
ide-ssr Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
limit Properly cfg the max field of Limit 2022-07-31 19:27:20 +02:00
mbe Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
parser Auto merge of #13160 - ChayimFriedman2:parse-parenthesized-type-path-with-coloncolon, r=jonas-schievink 2022-09-01 21:00:14 +00:00
paths Auto merge of #12808 - Veykril:check-workspace, r=Veykril 2022-08-04 12:57:04 +00:00
proc-macro-api Bump tracing 2022-10-15 12:52:34 +03:00
proc-macro-srv Don't run proc-macro-srv tests on the rust-analyzer repo 2022-09-24 00:08:28 +02:00
proc-macro-srv-cli Gate and rename binary, use it if it's in the sysroot 2022-07-25 16:22:39 +02:00
proc-macro-test revert nightly rustfmt formatting that accidentally slipped in 2022-07-25 14:18:30 +02:00
profile Bump libc 2022-10-15 12:55:56 +03:00
project-model Auto merge of #13128 - Veykril:invocation-strategy, r=Veykril 2022-10-19 21:53:19 +00:00
rust-analyzer Auto merge of #13128 - Veykril:invocation-strategy, r=Veykril 2022-10-19 21:53:19 +00:00
sourcegen Remove obsolete in-rust-tree feature from sourcegen 2022-09-26 11:34:30 +02:00
stdx Bump libc 2022-10-15 12:55:56 +03:00
syntax Simplify 2022-10-19 21:17:11 +02:00
test-utils Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
text-edit Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
toolchain Bump home 2022-10-15 12:53:26 +03:00
tt Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
vfs Make use of NoHash hashing for FileId and CrateId 2022-08-25 20:41:49 +02:00
vfs-notify Bump notify 2022-10-15 13:03:39 +03:00