about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-09-06 09:18:17 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-09-09 16:14:18 +1000
commit3fe7dd6893aa1ee6d02f6112697e2a4abb62254f (patch)
tree241722531a559ad86d7cf8c1b84dc4e668ea29ff /compiler/rustc_codegen_llvm/src
parentadf8d168af9334a8bf940824fcf4207d01e05ae5 (diff)
downloadrust-3fe7dd6893aa1ee6d02f6112697e2a4abb62254f.tar.gz
rust-3fe7dd6893aa1ee6d02f6112697e2a4abb62254f.zip
Remove unnecessary lifetimes in dataflow structs.
There are four related dataflow structs: `MaybeInitializedPlaces`,
`MaybeUninitializedPlaces`, and `EverInitializedPlaces`,
`DefinitelyInitializedPlaces`. They all have a `&Body` and a
`&MoveData<'tcx>` field. The first three use different lifetimes for the
two fields, but the last one uses the same lifetime for both.

This commit changes the first three to use the same lifetime, removing
the need for one of the lifetimes. Other structs that also lose a
lifetime as a result of this are `LivenessContext`, `LivenessResults`,
`InitializationData`.

It then does similar things in various other structs.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions