diff options
| author | David Tolnay <dtolnay@gmail.com> | 2024-12-27 18:43:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-27 18:43:04 -0800 |
| commit | 2d96f2a48fb825e2028c1ee45f3a4ebd941ff8e2 (patch) | |
| tree | 722c176bb1266597353fe79628bacaf0fb6debdc /compiler/rustc_trait_selection/src | |
| parent | 9aebd28ca75683661fa3e80b1d3f8b390b6826d7 (diff) | |
| parent | 85aad52ce8b2de4d6b7119812d1daa8717f4b23d (diff) | |
| download | rust-2d96f2a48fb825e2028c1ee45f3a4ebd941ff8e2.tar.gz rust-2d96f2a48fb825e2028c1ee45f3a4ebd941ff8e2.zip | |
Rollup merge of #134827 - compiler-errors:borrowck-nits, r=lqd
Some random region tweaks Remove a redundant function and add an assertion that I think is useful
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/auto_trait.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs index 6730f28893d..9a53e8a5d51 100644 --- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs +++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs @@ -161,8 +161,7 @@ impl<'tcx> AutoTraitFinder<'tcx> { let outlives_env = OutlivesEnvironment::new(full_env); let _ = infcx.process_registered_region_obligations(&outlives_env, |ty, _| Ok(ty)); - let region_data = - infcx.inner.borrow_mut().unwrap_region_constraints().region_constraint_data().clone(); + let region_data = infcx.inner.borrow_mut().unwrap_region_constraints().data().clone(); let vid_to_region = self.map_vid_to_region(®ion_data); |
