diff options
| author | bors <bors@rust-lang.org> | 2024-01-05 13:37:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-05 13:37:54 +0000 |
| commit | 2271b820072d6ab83069c7831b32e6435fe04828 (patch) | |
| tree | b6b56b4eec02bb74042568136eb59e6b239fd40d /compiler/rustc_codegen_gcc/example/example.rs | |
| parent | 59457091bb05292f6889226951b08f8308edbcf4 (diff) | |
| parent | fbdc59c54a065def2acc44300db3945758003c91 (diff) | |
| download | rust-2271b820072d6ab83069c7831b32e6435fe04828.tar.gz rust-2271b820072d6ab83069c7831b32e6435fe04828.zip | |
Auto merge of #16264 - roife:refactor/refactor-generate-delegate-trait, r=Veykril
internal: clean and enhance readability for `generate_delegate_trait` Continue from #16112 This PR primarily involves some cleanup and simple refactoring work, including: - Adding numerous comments to layer the code and explain the behavior of each step. - Renaming some variables to make them more sensible. - Simplify certain operations using a more elegant approach. The goal is to make this intricate implementation clearer and facilitate future maintenance. In addition to this, the PR also removes redundant `path_transform` operations for `type_gen_args`. Taking the example of `impl Trait<T1> for S<S1>`, where `S1` is considered. The struct `S` must be in the file where the user triggers code actions, so there's no need for the `path_transform`. Furthermore, before performing the transform, we've already renamed `S1`, ensuring it won't clash with existing generics parameters. Therefore, there's no need to transform it.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
0 files changed, 0 insertions, 0 deletions
