]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/adt.rs
Auto merge of #102596 - scottmcm:option-bool-calloc, r=Mark-Simulacrum
[rust.git] / compiler / rustc_middle / src / ty / adt.rs
index 3c485e264097044299558780c0f443ccb3f3f0db..80bbc8e630e02ab7d19ed3acc8f9cdf0d831ca93 100644 (file)
@@ -566,3 +566,10 @@ pub fn sized_constraint(self, tcx: TyCtxt<'tcx>) -> ty::EarlyBinder<&'tcx [Ty<'t
         ty::EarlyBinder(tcx.adt_sized_constraint(self.did()).0)
     }
 }
+
+#[derive(Clone, Copy, Debug)]
+#[derive(HashStable)]
+pub enum Representability {
+    Representable,
+    Infinite,
+}