about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-27 14:55:18 +0000
committerbors <bors@rust-lang.org>2023-12-27 14:55:18 +0000
commit15755f38cd94f160713a6117829b0d1da2535b05 (patch)
tree071ae77ba0bb34e731b0fe3d622d91eef2b12ac7 /compiler/rustc_mir_transform/src/coverage/mod.rs
parentca9ff83f1be558d4ce0a9a49b3d4d25034e5bd1e (diff)
parent9c5293c27b39be486b6e4b837d18d460600e9c13 (diff)
downloadrust-15755f38cd94f160713a6117829b0d1da2535b05.tar.gz
rust-15755f38cd94f160713a6117829b0d1da2535b05.zip
Auto merge of #119302 - Mark-Simulacrum:relative-spans, r=WaffleLapkin
Support encoding spans with relative offsets

The relative offset is often smaller than the absolute offset, and with
the LEB128 encoding, this ends up cutting the overall metadata size
considerably (~1.5 megabytes on libcore). We can support both relative
and absolute encodings essentially for free since we already take a full
byte to differentiate between direct and indirect encodings (so an extra
variant is quite cheap).
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions