diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-09-14 18:12:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 18:12:13 +0200 |
| commit | 03e8b6bbfa1c098eb125ee192a012bcab4083c9b (patch) | |
| tree | c0ea52f487d2dc44de398aa208c09976bfe1145b /compiler/rustc_mir_transform/src/check_alignment.rs | |
| parent | f87336724376b4038cf4faf7fcf08d5aa7813432 (diff) | |
| parent | 359b6589ac2efdbfedf42f29098394c1f62d4dd3 (diff) | |
| download | rust-03e8b6bbfa1c098eb125ee192a012bcab4083c9b.tar.gz rust-03e8b6bbfa1c098eb125ee192a012bcab4083c9b.zip | |
Rollup merge of #130294 - nnethercote:more-lifetimes, r=lcnr
Lifetime cleanups The last commit is very opinionated, let's see how we go. r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_mir_transform/src/check_alignment.rs')
| -rw-r--r-- | compiler/rustc_mir_transform/src/check_alignment.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/check_alignment.rs b/compiler/rustc_mir_transform/src/check_alignment.rs index e1d5152ae51..a9600f77c0b 100644 --- a/compiler/rustc_mir_transform/src/check_alignment.rs +++ b/compiler/rustc_mir_transform/src/check_alignment.rs @@ -62,14 +62,14 @@ impl<'tcx> crate::MirPass<'tcx> for CheckAlignment { } } -struct PointerFinder<'tcx, 'a> { +struct PointerFinder<'a, 'tcx> { tcx: TyCtxt<'tcx>, local_decls: &'a mut LocalDecls<'tcx>, param_env: ParamEnv<'tcx>, pointers: Vec<(Place<'tcx>, Ty<'tcx>)>, } -impl<'tcx, 'a> Visitor<'tcx> for PointerFinder<'tcx, 'a> { +impl<'a, 'tcx> Visitor<'tcx> for PointerFinder<'a, 'tcx> { fn visit_place(&mut self, place: &Place<'tcx>, context: PlaceContext, location: Location) { // We want to only check reads and writes to Places, so we specifically exclude // Borrow and RawBorrow. |
