diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-22 13:14:40 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-24 06:58:35 +1000 |
| commit | d4bf28c014772f7233fc396992164c72c08fbfd9 (patch) | |
| tree | 0622f310ead54974c889fa23b4e3a742627d2376 /compiler/rustc_mir_transform/src/coverage/mappings.rs | |
| parent | 1fdabfbebbb12b2836f91aeec3157fd092f9a8ad (diff) | |
| download | rust-d4bf28c014772f7233fc396992164c72c08fbfd9.tar.gz rust-d4bf28c014772f7233fc396992164c72c08fbfd9.zip | |
Optimize `collect_tokens` a little.
Use `Cow` to avoid cloning `ret.attrs()` unless necessary. This requires moving some things around to satisfy the borrow checker.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mappings.rs')
0 files changed, 0 insertions, 0 deletions
