rust/compiler/rustc_index/src
bors 6d05f12170 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`
2024-09-08 05:35:23 +00:00
..
bit_set Reformat use declarations. 2024-07-29 08:26:52 +10:00
interval correct the test if IntervalSet 2022-06-08 22:44:26 +08:00
vec Replace no_ord_impl with orderable. 2023-11-22 18:38:17 +11:00
bit_set.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
idx.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
interval.rs Avoid double-handling of attributes in collect_tokens. 2024-08-24 06:57:47 +10:00
lib.rs disable size asserts in the compiler when randomizing layouts 2024-08-31 23:56:45 +02:00
slice.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
vec.rs Add and use IndexVec::append 2024-08-13 13:40:05 -07:00