diff options
| author | bors <bors@rust-lang.org> | 2024-08-30 05:38:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-30 05:38:59 +0000 |
| commit | 16a29ced1575e47559e2e46d28c0183e576113c9 (patch) | |
| tree | 662251caf5b282631797efe3cff8fc59a2cbc910 /tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs | |
| parent | 28142e4018279d75ff51d31e6b65eb2405f8f338 (diff) | |
| parent | 29ecaa1edf1b0dc04514852404ab2e87318d502b (diff) | |
| download | rust-16a29ced1575e47559e2e46d28c0183e576113c9.tar.gz rust-16a29ced1575e47559e2e46d28c0183e576113c9.zip | |
Auto merge of #17982 - IvarWithoutBones:generate-impl-indent, r=Veykril
fix: consider indentation in the "Generate impl" and "Generate trait impl" assists This makes the generated impl's indentation match the ADT it targets, improving formatting when using nested modules inside of the same file or when defining types inside of a function. See the added tests for an example. At first I tried to call some of the convenient helpers that delegate to `IndentLevel::increase_indent` on the generated impl, but as the comment on that function notes it does not indent the first token, making it inapplicable here. I hope the solution in this PR is acceptable, please let me know if I missed something :)
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs')
0 files changed, 0 insertions, 0 deletions
