diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-09 13:38:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 13:38:31 +0100 |
| commit | b681dc2af419c5b7f200e44a3604a8dab9ebe3a6 (patch) | |
| tree | 1787805d723e4f60c0a3b7dd69dc4424219b0680 /compiler/rustc_codegen_gcc | |
| parent | 464a0813d122a43fdafd99a396d2d9b8482d7891 (diff) | |
| parent | 452346677084a954b78636f222788b8f072b8572 (diff) | |
| download | rust-b681dc2af419c5b7f200e44a3604a8dab9ebe3a6.tar.gz rust-b681dc2af419c5b7f200e44a3604a8dab9ebe3a6.zip | |
Rollup merge of #92573 - petrochenkov:ltrattr3, r=Aaron1011
expand: Refactor InvocationCollector visitor for better code reuse The refactoring part of https://github.com/rust-lang/rust/pull/92473. Invocation collector visitor logic now lives in two main functions: - `fn flat_map_node`, corresponding to "one to many" expansions - `fn visit_node`, corresponding to "one to one" expansions All specific mut visitor methods now use one of these functions. The new `InvocationCollectorNode` trait implemented for all `AstFragment` nodes provides the necessary small pieces of functionality required to implement the `(flat_map,visit)_node` functions. r? `@Aaron1011`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
