Skip to content

Commit 3f599ad

Browse files
committed
Fix rebase issues
1 parent 725eeb0 commit 3f599ad

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/librustc/infer/canonical.rs

-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
250250
let ty = match ty_kind {
251251
CanonicalTyVarKind::General => {
252252
self.next_ty_var(
253-
// FIXME(#48696) this handling of universes is not right.
254-
ty::UniverseIndex::ROOT,
255253
TypeVariableOrigin::MiscVariable(span),
256254
)
257255
}

src/librustc/infer/region_constraints/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ pub fn region_universe(var_infos: &VarInfos, region: Region<'_>) -> ty::Universe
634634
ty::ReVar(vid) => var_infos[vid].universe,
635635
ty::ReLateBound(..) =>
636636
bug!("region_universe(): encountered bound region {:?}", region),
637+
ty::ReCanonical(..) =>
638+
bug!("region_universe(): encountered canonical region {:?}", region),
637639
}
638640
}
639641

src/librustc/traits/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
15141514
assert!(!skol_trait_ref.has_escaping_regions());
15151515
match self.infcx.at(&obligation.cause, obligation.param_env)
15161516
.sup(ty::Binder(skol_trait_ref), trait_bound) {
1517-
Ok(InferOk { obligations, .. }) => true,
1517+
Ok(InferOk { .. }) => true,
15181518
Err(_) => false,
15191519
}
15201520
}

src/librustc/ty/mod.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ impl<'tcx> ParamEnv<'tcx> {
13941394
/// Trait`) are left hidden, so this is suitable for ordinary
13951395
/// type-checking.
13961396
pub fn empty() -> Self {
1397-
Self::new(ty::Slice::empty(), Reveal::UserFacing, ty::UniverseIndex::ROOT)
1397+
Self::new(ty::Slice::empty(), Reveal::UserFacing)
13981398
}
13991399

14001400
/// Construct a trait environment with no where clauses in scope
@@ -1405,15 +1405,14 @@ impl<'tcx> ParamEnv<'tcx> {
14051405
/// NB. If you want to have predicates in scope, use `ParamEnv::new`,
14061406
/// or invoke `param_env.with_reveal_all()`.
14071407
pub fn reveal_all() -> Self {
1408-
Self::new(ty::Slice::empty(), Reveal::All, ty::UniverseIndex::ROOT)
1408+
Self::new(ty::Slice::empty(), Reveal::All)
14091409
}
14101410

14111411
/// Construct a trait environment with the given set of predicates.
14121412
pub fn new(caller_bounds: &'tcx ty::Slice<ty::Predicate<'tcx>>,
1413-
reveal: Reveal,
1414-
universe: ty::UniverseIndex)
1413+
reveal: Reveal)
14151414
-> Self {
1416-
ty::ParamEnv { caller_bounds, reveal, universe }
1415+
ty::ParamEnv { caller_bounds, reveal }
14171416
}
14181417

14191418
/// Returns a new parameter environment with the same clauses, but

0 commit comments

Comments
 (0)