Skip to content

Commit d6c5a6b

Browse files
nit: Remove redundant function
1 parent 409998c commit d6c5a6b

File tree

2 files changed

+1
-6
lines changed
  • compiler

2 files changed

+1
-6
lines changed

compiler/rustc_infer/src/infer/region_constraints/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,6 @@ impl<'tcx> RegionConstraintCollector<'_, 'tcx> {
299299
self.storage.var_infos.len()
300300
}
301301

302-
pub fn region_constraint_data(&self) -> &RegionConstraintData<'tcx> {
303-
&self.storage.data
304-
}
305-
306302
/// Takes (and clears) the current set of constraints. Note that
307303
/// the set of variables remains intact, but all relationships
308304
/// between them are reset. This is used during NLL checking to

compiler/rustc_trait_selection/src/traits/auto_trait.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
161161
let outlives_env = OutlivesEnvironment::new(full_env);
162162
let _ = infcx.process_registered_region_obligations(&outlives_env, |ty, _| Ok(ty));
163163

164-
let region_data =
165-
infcx.inner.borrow_mut().unwrap_region_constraints().region_constraint_data().clone();
164+
let region_data = infcx.inner.borrow_mut().unwrap_region_constraints().data().clone();
166165

167166
let vid_to_region = self.map_vid_to_region(&region_data);
168167

0 commit comments

Comments
 (0)