about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2024-12-27 18:43:04 -0800
committerGitHub <noreply@github.com>2024-12-27 18:43:04 -0800
commit2d96f2a48fb825e2028c1ee45f3a4ebd941ff8e2 (patch)
tree722c176bb1266597353fe79628bacaf0fb6debdc /compiler/rustc_trait_selection/src
parent9aebd28ca75683661fa3e80b1d3f8b390b6826d7 (diff)
parent85aad52ce8b2de4d6b7119812d1daa8717f4b23d (diff)
downloadrust-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.rs3
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(&region_data);