about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-20 12:07:28 +0000
committerbors <bors@rust-lang.org>2022-10-20 12:07:28 +0000
commitf3cce5feea047e61af84f371072a021a333ba69f (patch)
treeba606b6e710bf7f9d41df48b89ceb73725d5e00e /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent32614e27fba85532f0d5808a4b32277beba2f252 (diff)
parent5bff6c55deaf4ae75dc463bb83a39ce2ce8cdc7f (diff)
downloadrust-f3cce5feea047e61af84f371072a021a333ba69f.tar.gz
rust-f3cce5feea047e61af84f371072a021a333ba69f.zip
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.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions