]> git.proxmox.com Git - rustc.git/blobdiff - src/libcollections/enum_set.rs
New upstream version 1.17.0+dfsg1
[rustc.git] / src / libcollections / enum_set.rs
index 78b610797778190f398d75eafbadcb0f4b4a25a5..602e874aaeec0de2d0416b93f67e6733a3ed27a7 100644 (file)
@@ -222,6 +222,14 @@ pub struct Iter<E> {
     marker: marker::PhantomData<E>,
 }
 
+impl<E: fmt::Debug> fmt::Debug for Iter<E> {
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+        f.debug_tuple("Iter")
+         .field(&self.clone())
+         .finish()
+    }
+}
+
 // FIXME(#19839) Remove in favor of `#[derive(Clone)]`
 impl<E> Clone for Iter<E> {
     fn clone(&self) -> Iter<E> {