diff options
| author | bors <bors@rust-lang.org> | 2022-10-20 12:07:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-20 12:07:28 +0000 |
| commit | f3cce5feea047e61af84f371072a021a333ba69f (patch) | |
| tree | ba606b6e710bf7f9d41df48b89ceb73725d5e00e /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 32614e27fba85532f0d5808a4b32277beba2f252 (diff) | |
| parent | 5bff6c55deaf4ae75dc463bb83a39ce2ce8cdc7f (diff) | |
| download | rust-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 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
