]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/mod.rs
move interface to the unikernel in the crate hermit-abi
[rust.git] / src / librustc / ty / mod.rs
index d2dc07374ed0051800147ce500cf3c10a22bb558..cfd859c33c2ef179c6242b0da1ed6d6e8cabf418 100644 (file)
@@ -1111,7 +1111,7 @@ pub enum Predicate<'tcx> {
     /// No direct syntax. May be thought of as `where T: FnFoo<...>`
     /// for some substitutions `...` and `T` being a closure type.
     /// Satisfied (or refuted) once we know the closure's kind.
-    ClosureKind(DefId, ClosureSubsts<'tcx>, ClosureKind),
+    ClosureKind(DefId, SubstsRef<'tcx>, ClosureKind),
 
     /// `T1 <: T2`
     Subtype(PolySubtypePredicate<'tcx>),
@@ -1458,7 +1458,7 @@ pub fn walk_tys(&'a self) -> impl Iterator<Item = Ty<'tcx>> + 'a {
                 WalkTysIter::None
             }
             ty::Predicate::ClosureKind(_closure_def_id, closure_substs, _kind) => {
-                WalkTysIter::Types(closure_substs.substs.types())
+                WalkTysIter::Types(closure_substs.types())
             }
             ty::Predicate::ConstEvaluatable(_, substs) => {
                 WalkTysIter::Types(substs.types())