Skip to content

Commit

Permalink
Fix failures after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrif committed Mar 23, 2018
1 parent c6935e5 commit 555f718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/librustc/infer/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
let ty = match ty_kind {
CanonicalTyVarKind::General => {
self.next_ty_var(
// FIXME(#48696) this handling of universes is not right.
ty::UniverseIndex::ROOT,
TypeVariableOrigin::MiscVariable(span),
)
}
Expand Down
9 changes: 4 additions & 5 deletions src/librustc/ty/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ impl<'tcx> ParamEnv<'tcx> {
/// Trait`) are left hidden, so this is suitable for ordinary
/// type-checking.
pub fn empty() -> Self {
Self::new(ty::Slice::empty(), Reveal::UserFacing, ty::UniverseIndex::ROOT)
Self::new(ty::Slice::empty(), Reveal::UserFacing)
}

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

/// Construct a trait environment with the given set of predicates.
pub fn new(caller_bounds: &'tcx ty::Slice<ty::Predicate<'tcx>>,
reveal: Reveal,
universe: ty::UniverseIndex)
reveal: Reveal)
-> Self {
ty::ParamEnv { caller_bounds, reveal, universe }
ty::ParamEnv { caller_bounds, reveal }
}

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

0 comments on commit 555f718

Please sign in to comment.