File tree 3 files changed +3
-5
lines changed
compiler/rustc_borrowck/src
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ pub(crate) fn compute_regions<'a, 'tcx>(
126
126
universe_causes,
127
127
type_tests,
128
128
} = constraints;
129
- let placeholder_indices = Rc :: new ( placeholder_indices) ;
130
129
131
130
// If requested, emit legacy polonius facts.
132
131
polonius:: emit_facts (
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
395
395
pub ( crate ) fn new (
396
396
infcx : & BorrowckInferCtxt < ' tcx > ,
397
397
var_infos : VarInfos ,
398
- placeholder_indices : Rc < PlaceholderIndices > ,
398
+ placeholder_indices : PlaceholderIndices ,
399
399
universal_region_relations : Frozen < UniversalRegionRelations < ' tcx > > ,
400
400
mut outlives_constraints : OutlivesConstraintSet < ' tcx > ,
401
401
member_constraints_in : MemberConstraintSet < ' tcx , RegionVid > ,
Original file line number Diff line number Diff line change @@ -258,10 +258,9 @@ impl PlaceholderIndices {
258
258
/// Here, the variable `'0` would contain the free region `'a`,
259
259
/// because (since it is returned) it must live for at least `'a`. But
260
260
/// it would also contain various points from within the function.
261
- #[ derive( Clone ) ]
262
261
pub ( crate ) struct RegionValues < N : Idx > {
263
262
elements : Rc < DenseLocationMap > ,
264
- placeholder_indices : Rc < PlaceholderIndices > ,
263
+ placeholder_indices : PlaceholderIndices ,
265
264
points : SparseIntervalMatrix < N , PointIndex > ,
266
265
free_regions : SparseBitMatrix < N , RegionVid > ,
267
266
@@ -277,7 +276,7 @@ impl<N: Idx> RegionValues<N> {
277
276
pub ( crate ) fn new (
278
277
elements : Rc < DenseLocationMap > ,
279
278
num_universal_regions : usize ,
280
- placeholder_indices : Rc < PlaceholderIndices > ,
279
+ placeholder_indices : PlaceholderIndices ,
281
280
) -> Self {
282
281
let num_points = elements. num_points ( ) ;
283
282
let num_placeholders = placeholder_indices. len ( ) ;
You can’t perform that action at this time.
0 commit comments