diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-30 15:04:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-30 15:04:09 +0200 |
| commit | 5a4e83c2e031560849ad1e6ba8f6b78b6e572a8c (patch) | |
| tree | f98a045f4c8f360b5cab86c0d76b1b4212bb4f93 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs | |
| parent | 784316eadca2c58f6d79343e1eac6a7b667c8ea3 (diff) | |
| parent | 741d40f327291404172b3f35377d8464688c2fe7 (diff) | |
| download | rust-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
