]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/opaque_types.rs
Auto merge of #95456 - RalfJung:size, r=oli-obk
[rust.git] / compiler / rustc_trait_selection / src / opaque_types.rs
index eb70de48368dcdedbc0771f0aa803a1585e5aa30..4b949ff8b95de3710ffd4fcd18fdf40d68f7122f 100644 (file)
@@ -139,7 +139,7 @@ fn fold_region(&mut self, r: ty::Region<'tcx>) -> ty::Region<'tcx> {
         match *r {
             // Ignore bound regions and `'static` regions that appear in the
             // type, we only need to remap regions that reference lifetimes
-            // from the function declaraion.
+            // from the function declaration.
             // This would ignore `'r` in a type like `for<'r> fn(&'r u32)`.
             ty::ReLateBound(..) | ty::ReStatic => return r,
 
@@ -352,7 +352,6 @@ fn fold_const(&mut self, ct: ty::Const<'tcx>) -> ty::Const<'tcx> {
                 | ty::PredicateKind::RegionOutlives(..)
                 | ty::PredicateKind::ConstEvaluatable(..)
                 | ty::PredicateKind::ConstEquate(..)
-                | ty::PredicateKind::OpaqueType(..)
                 | ty::PredicateKind::TypeWellFormedFromEnv(..) => None,
                 ty::PredicateKind::TypeOutlives(ty::OutlivesPredicate(ref t, ref r)) => {
                     // Search for a bound of the form `erased_self_ty