about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-30 15:04:09 +0200
committerGitHub <noreply@github.com>2024-04-30 15:04:09 +0200
commit5a4e83c2e031560849ad1e6ba8f6b78b6e572a8c (patch)
treef98a045f4c8f360b5cab86c0d76b1b4212bb4f93 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent784316eadca2c58f6d79343e1eac6a7b667c8ea3 (diff)
parent741d40f327291404172b3f35377d8464688c2fe7 (diff)
downloadrust-5a4e83c2e031560849ad1e6ba8f6b78b6e572a8c.tar.gz
rust-5a4e83c2e031560849ad1e6ba8f6b78b6e572a8c.zip
Rollup merge of #124550 - gurry:remove-redundant-code, r=oli-obk
Remove redundant union check in `KnownPanicsLint` const prop

Removes the below check which prevents unions from being const propagated:https://github.com/rust-lang/rust/blob/f9dca46218d4b8efa062aec4fd0820cbb4942aa2/compiler/rustc_mir_transform/src/known_panics_lint.rs#L587-L594

It is not needed because after PR #124504 we mark unions as `NoPropagation` over here: https://github.com/rust-lang/rust/blob/f9dca46218d4b8efa062aec4fd0820cbb4942aa2/compiler/rustc_mir_transform/src/known_panics_lint.rs#L899-L902 which is enough to prevent them from being const propagated.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions