coverage: Dismantle map_data.rs by moving its responsibilities elsewhere by Zalathar · Pull Request #134323 · rust-lang/rust (original) (raw)

This is a series of incremental changes that combine to let us get rid of coverageinfo/map_data.rs, by moving all of its responsibilities into more appropriate places.

Some of the notable consequences are:


There should be no meaningful change to compiler output. The file table is no longer sorted, because reordering it would invalidate the file indices stored in individual covfun records, but the table order should still be deterministic (albeit arbitrary).

There are some subsequent cleanups that I intend to investigate, but this is enough change for one PR.