Files
rust/compiler
León Orell Valerian Liehr ea39f19fab Rollup merge of #119514 - Zalathar:query-stability, r=wesleywiser
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.

cc ``@Enselic``
2024-01-03 16:08:32 +01:00
..
2023-10-30 08:46:02 +11:00
2023-12-05 17:52:51 -08:00
2023-11-15 19:41:28 -05:00
2023-11-15 19:41:28 -05:00
2023-11-26 08:38:02 +11:00
2023-11-23 14:11:02 +03:00
2023-11-22 08:13:21 +11:00
2023-12-28 16:35:01 +00:00