about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2025-01-15 15:01:56 +0000
committerBastian Kersting <bkersting@google.com>2025-03-28 10:46:41 +0000
commit3e960c12d8004135a2c864a6d54753df806aeff6 (patch)
treedf4108776230d2c8d27876bf7cfb173d1f74df15 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentc2922d1213800157f013645d3dba6e8ed584b3a4 (diff)
downloadrust-3e960c12d8004135a2c864a6d54753df806aeff6.tar.gz
rust-3e960c12d8004135a2c864a6d54753df806aeff6.zip
Make missing_const_for_fn operate on non-optimized MIR
This has two reasons: First of all we don't need the optimized MIR for
evaluating the checks of this lint, as const-eval anyways operates on
`mir_for_ctf` which is derived from `mir_drops_elaborated_and_const_checked`.
Second of all we might transform MIR in the optimization passes in a way
that doesn't work with const-eval, but it is irrelevant since const-eval
uses another MIR.

Specifically this came up when adding a new check in debug builds
(https://github.com/rust-lang/rust/pull/134424), which is added as part
of an optimization pass.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions