about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-11-26 12:03:42 -0500
committerGitHub <noreply@github.com>2024-11-26 12:03:42 -0500
commit3e1a08925744cfcf1a211c1257f2b44f31e6be46 (patch)
tree1cad233666c745de6e7e7733d0b4440a97017d97 /compiler/rustc_codegen_llvm/src/back/write.rs
parent3013cd83ccb67d7988440e9fa7d9d7df6980bc83 (diff)
parentae9ac0e383b8054ccded79ce26e48a14b485cb3c (diff)
downloadrust-3e1a08925744cfcf1a211c1257f2b44f31e6be46.tar.gz
rust-3e1a08925744cfcf1a211c1257f2b44f31e6be46.zip
Rollup merge of #133326 - nnethercote:rm-DefinitelyInitializedPlaces, r=cjgillot
Remove the `DefinitelyInitializedPlaces` analysis.

Its only use is in the `tests/ui/mir-dataflow/def_inits-1.rs` where it is tested via `rustc_peek_definite_init`.

Also, it's probably buggy. It's supposed to be the inverse of `MaybeUninitializedPlaces`, and it mostly is, except that `apply_terminator_effect` is a little different, and `apply_switch_int_edge_effects` is missing. Unlike `MaybeUninitializedPlaces`, which is used extensively in borrow checking, any bugs in `DefinitelyInitializedPlaces` are easy to overlook because it is only used in one small test.

This commit removes the analysis. It also removes
`rustc_peek_definite_init`, `Dual` and `MeetSemiLattice`, all of which are no longer needed.

r? ``@cjgillot``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions