rust/compiler/rustc_codegen_llvm/src
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
..
back Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
coverageinfo coverage: Avoid a query stability hazard in function_coverage_map 2024-01-02 22:57:04 +11:00
debuginfo Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
llvm Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
abi.rs remove redundant imports 2023-12-10 10:56:22 +08:00
allocator.rs Auto merge of #118566 - klensy:cstr-new, r=WaffleLapkin 2023-12-14 11:14:03 +00:00
asm.rs Auto merge of #114467 - Amanieu:asm-unstable-features, r=davidtwco 2023-08-15 11:59:02 +00:00
attributes.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
base.rs compiler: replace cstr macro with c str literals in compiler and few other c str replacements 2023-12-03 14:54:09 +03:00
builder.rs Auto merge of #118705 - WaffleLapkin:codegen-atomic-exhange-untuple, r=cjgillot 2023-12-30 07:42:19 +00:00
callee.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
common.rs ctfe interpreter: extend provenance so that it can track whether a pointer is immutable 2023-12-07 17:46:36 +01:00
consts.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
context.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
declare.rs Add unstable -Zdefault-hidden-visibility cmdline flag for rustc. 2023-12-13 21:14:23 +00:00
errors.rs Improve some names. 2023-12-23 13:23:28 +11:00
intrinsic.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib.rs update cfg(bootstrap)s 2023-12-22 11:14:11 +01:00
llvm_util.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
mono_item.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
type_.rs remove unused pub fn 2023-11-23 14:11:02 +03:00
type_of.rs Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
va_arg.rs cg_llvm: remove pointee types and pointercast/bitcast-of-ptr 2023-07-29 13:18:17 -04:00
value.rs