1
Fork 0
rust/compiler/rustc_borrowck/src/diagnostics
Nicholas Nethercote 3fe7dd6893 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.
2024-09-09 16:14:18 +10:00
..
bound_region_errors.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
conflict_errors.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
explain_borrow.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
find_all_local_uses.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
find_use.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
mod.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
move_errors.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
mutability_errors.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
outlives_suggestion.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
region_errors.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
region_name.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
var_name.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00