Skip to content

Commit 23d4599

Browse files
committed
WIP
1 parent 38c204b commit 23d4599

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/rustc_borrowck/src/handle_placeholders.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,12 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
339339
let (definitions, has_placeholders) = region_definitions(universal_regions, infcx);
340340

341341
let MirTypeckRegionConstraints {
342-
placeholder_indices: _,
343-
placeholder_index_to_region: _,
344342
liveness_constraints,
345343
mut outlives_constraints,
346344
mut member_constraints,
347345
universe_causes,
348346
type_tests,
347+
..
349348
} = constraints;
350349

351350
if let Some(guar) = universal_regions.tainted_by_errors() {

compiler/rustc_borrowck/src/type_check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,14 @@ pub(crate) struct MirTypeckResults<'tcx> {
238238
pub(crate) struct MirTypeckRegionConstraints<'tcx> {
239239
/// Maps from a `ty::Placeholder` to the corresponding
240240
/// `PlaceholderIndex` bit that we will use for it.
241-
pub placeholder_indices: PlaceholderIndices,
241+
placeholder_indices: PlaceholderIndices,
242242

243243
/// Each time we add a placeholder to `placeholder_indices`, we
244244
/// also create a corresponding "representative" region vid for
245245
/// that wraps it. This vector tracks those. This way, when we
246246
/// convert the same `ty::RePlaceholder(p)` twice, we can map to
247247
/// the same underlying `RegionVid`.
248-
pub placeholder_index_to_region: IndexVec<PlaceholderIndex, ty::Region<'tcx>>,
248+
placeholder_index_to_region: IndexVec<PlaceholderIndex, ty::Region<'tcx>>,
249249

250250
/// In general, the type-checker is not responsible for enforcing
251251
/// liveness constraints; this job falls to the region inferencer,

0 commit comments

Comments
 (0)