diff options
| author | bors <bors@rust-lang.org> | 2024-09-08 05:35:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-08 05:35:23 +0000 |
| commit | 6d05f1217067474d0974ffed292a1a025d075826 (patch) | |
| tree | 3873a3580c5b30c1ee3bd7df91cab9fdbabc6ffa /compiler/rustc_mir_transform/src/coverage/mappings.rs | |
| parent | 7f4b270aa49823ef142018e969fccb7eea4a7ea6 (diff) | |
| parent | d4bf28c014772f7233fc396992164c72c08fbfd9 (diff) | |
| download | rust-6d05f1217067474d0974ffed292a1a025d075826.tar.gz rust-6d05f1217067474d0974ffed292a1a025d075826.zip | |
Auto merge of #129346 - nnethercote:fix-double-handling-in-collect_tokens, r=petrochenkov
Fix double handling in `collect_tokens` Double handling of AST nodes can occur in `collect_tokens`. This is when an inner call to `collect_tokens` produces an AST node, and then an outer call to `collect_tokens` produces the same AST node. This can happen in a few places, e.g. expression statements where the statement delegates `HasTokens` and `HasAttrs` to the expression. It will also happen more after #124141. This PR fixes some double handling cases that cause problems, including #129166. r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mappings.rs')
0 files changed, 0 insertions, 0 deletions
