diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-21 14:16:42 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-24 06:57:47 +1000 |
| commit | 1fdabfbebbb12b2836f91aeec3157fd092f9a8ad (patch) | |
| tree | a265515e278fed64245e30890ce24638a9d7b167 /compiler/rustc_mir_transform/src/coverage/mappings.rs | |
| parent | b7e7f6e903ac28021a4b099d63eefd35f125c2a6 (diff) | |
| download | rust-1fdabfbebbb12b2836f91aeec3157fd092f9a8ad.tar.gz rust-1fdabfbebbb12b2836f91aeec3157fd092f9a8ad.zip | |
Avoid double-handling of attributes in `collect_tokens`.
By keeping track of attributes that have been previously processed. This fixes the `macro-rules-derive-cfg.stdout` test, and is necessary for #124141 which removes nonterminals. Also shrink the `SmallVec` inline size used in `IntervalSet`. 2 gives slightly better perf than 4 now that there's an `IntervalSet` in `Parser`, which is cloned reasonably often.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mappings.rs')
0 files changed, 0 insertions, 0 deletions
