Skip to content

Commit 555f718

Browse files
committed
Fix failures after rebase
1 parent c6935e5 commit 555f718

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/librustc/infer/canonical.rs

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

src/librustc/ty/mod.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ impl<'tcx> ParamEnv<'tcx> {
13801380
/// Trait`) are left hidden, so this is suitable for ordinary
13811381
/// type-checking.
13821382
pub fn empty() -> Self {
1383-
Self::new(ty::Slice::empty(), Reveal::UserFacing, ty::UniverseIndex::ROOT)
1383+
Self::new(ty::Slice::empty(), Reveal::UserFacing)
13841384
}
13851385

13861386
/// Construct a trait environment with no where clauses in scope
@@ -1391,15 +1391,14 @@ impl<'tcx> ParamEnv<'tcx> {
13911391
/// NB. If you want to have predicates in scope, use `ParamEnv::new`,
13921392
/// or invoke `param_env.with_reveal_all()`.
13931393
pub fn reveal_all() -> Self {
1394-
Self::new(ty::Slice::empty(), Reveal::All, ty::UniverseIndex::ROOT)
1394+
Self::new(ty::Slice::empty(), Reveal::All)
13951395
}
13961396

13971397
/// Construct a trait environment with the given set of predicates.
13981398
pub fn new(caller_bounds: &'tcx ty::Slice<ty::Predicate<'tcx>>,
1399-
reveal: Reveal,
1400-
universe: ty::UniverseIndex)
1399+
reveal: Reveal)
14011400
-> Self {
1402-
ty::ParamEnv { caller_bounds, reveal, universe }
1401+
ty::ParamEnv { caller_bounds, reveal }
14031402
}
14041403

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

0 commit comments

Comments
 (0)