]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/subst.rs
Move `BoundTy` to `ty::TyKind`
[rust.git] / src / librustc / ty / subst.rs
index 02b5d36ecce6ea0dab9088b61e202d5438116a64..87c2c9b6005aa89875584b0cbade512b4404d73a 100644 (file)
@@ -556,7 +556,7 @@ pub fn is_identity(&self) -> bool {
         self.value.substs.iter().zip(BoundTyIndex::new(0)..).all(|(kind, cvar)| {
             match kind.unpack() {
                 UnpackedKind::Type(ty) => match ty.sty {
-                    ty::Infer(ty::BoundTy(ref b)) => cvar == b.var,
+                    ty::Bound(ref b) => cvar == b.var,
                     _ => false,
                 },