about summary refs log tree commit diff
path: root/src/libstd_unicode/char.rs
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2017-11-22 00:49:28 +0000
committerOliver Middleton <olliemail27@gmail.com>2017-11-22 00:49:28 +0000
commitfb094642e13fc7b41a55aa2eaba4361411cccf8f (patch)
treeffffeead81c2cca31ddf477987970f6389d18537 /src/libstd_unicode/char.rs
parent63739ab7b210c1a8c890c2ea5238a3284877daa3 (diff)
downloadrust-fb094642e13fc7b41a55aa2eaba4361411cccf8f.tar.gz
rust-fb094642e13fc7b41a55aa2eaba4361411cccf8f.zip
Add missing Debug impls to std_unicode
Also adds #![deny(missing_debug_implementations)] so they don't get
missed again.
Diffstat (limited to 'src/libstd_unicode/char.rs')
-rw-r--r--src/libstd_unicode/char.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs
index e20937c6c7b..0faf5bd9121 100644
--- a/src/libstd_unicode/char.rs
+++ b/src/libstd_unicode/char.rs
@@ -57,6 +57,7 @@ pub use tables::{UnicodeVersion, UNICODE_VERSION};
 /// [`to_lowercase`]: ../../std/primitive.char.html#method.to_lowercase
 /// [`char`]: ../../std/primitive.char.html
 #[stable(feature = "rust1", since = "1.0.0")]
+#[derive(Debug)]
 pub struct ToLowercase(CaseMappingIter);
 
 #[stable(feature = "rust1", since = "1.0.0")]
@@ -78,6 +79,7 @@ impl FusedIterator for ToLowercase {}
 /// [`to_uppercase`]: ../../std/primitive.char.html#method.to_uppercase
 /// [`char`]: ../../std/primitive.char.html
 #[stable(feature = "rust1", since = "1.0.0")]
+#[derive(Debug)]
 pub struct ToUppercase(CaseMappingIter);
 
 #[stable(feature = "rust1", since = "1.0.0")]
@@ -91,6 +93,7 @@ impl Iterator for ToUppercase {
 #[unstable(feature = "fused", issue = "35602")]
 impl FusedIterator for ToUppercase {}
 
+#[derive(Debug)]
 enum CaseMappingIter {
     Three(char, char, char),
     Two(char, char),
@@ -1450,7 +1453,7 @@ impl char {
 
 /// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
 #[stable(feature = "decode_utf16", since = "1.9.0")]
-#[derive(Clone)]
+#[derive(Clone, Debug)]
 pub struct DecodeUtf16<I>
     where I: Iterator<Item = u16>
 {