about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mappings.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-22 13:14:40 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-24 06:58:35 +1000
commitd4bf28c014772f7233fc396992164c72c08fbfd9 (patch)
tree0622f310ead54974c889fa23b4e3a742627d2376 /compiler/rustc_mir_transform/src/coverage/mappings.rs
parent1fdabfbebbb12b2836f91aeec3157fd092f9a8ad (diff)
downloadrust-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