rust/compiler/rustc_codegen_llvm/src/coverageinfo
Zalathar 5e7c1b93ac coverage: Avoid a query stability hazard in function_coverage_map
When #118865 started enforcing the `rustc::potential_query_instability` lint in
`rustc_codegen_llvm`, it added an exemption for this site, arguing that the
entries are only used to create a list of filenames that is later sorted.

However, the list of entries also gets traversed when creating the function
coverage records in LLVM IR, which may be sensitive to hash-based ordering.

This patch therefore changes `function_coverage_map` to use `FxIndexMap`, which
should avoid hash-based instability by iterating in insertion order.
2024-01-02 22:57:04 +11:00
..
ffi.rs coverage: Store expression data in function coverage info 2023-10-18 23:44:34 +11:00
map_data.rs coverage: Consistently remove unused counter IDs from expressions/mappings 2023-10-28 09:33:48 +11:00
mapgen.rs coverage: Avoid a query stability hazard in function_coverage_map 2024-01-02 22:57:04 +11:00
mod.rs coverage: Avoid a query stability hazard in function_coverage_map 2024-01-02 22:57:04 +11:00