about summary refs log tree commit diff
path: root/src/libstd_unicode
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-03 18:45:46 +0800
committerGitHub <noreply@github.com>2018-03-03 18:45:46 +0800
commitad1cc0c1bce7f85be2930c940e8fb682e81c3205 (patch)
tree170e43b40cf8993bf797f13a761ab5a4deecb03a /src/libstd_unicode
parent14b6262fde5039c4eaf67d58d4de45b62d4d2313 (diff)
parent5ac4f62f3832f2a4ed26ab95567c96a38a9f4f15 (diff)
downloadrust-ad1cc0c1bce7f85be2930c940e8fb682e81c3205.tar.gz
rust-ad1cc0c1bce7f85be2930c940e8fb682e81c3205.zip
Rollup merge of #48629 - strake:char, r=alexcrichton
impl Clone for ::std_unicode::char::{ToLowercase, ToUppercase}
Diffstat (limited to 'src/libstd_unicode')
-rw-r--r--src/libstd_unicode/char.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd_unicode/char.rs b/src/libstd_unicode/char.rs
index 844ff7a3c12..5dd9c627750 100644
--- a/src/libstd_unicode/char.rs
+++ b/src/libstd_unicode/char.rs
@@ -59,7 +59,7 @@ pub use version::UnicodeVersion;
 /// [`to_lowercase`]: ../../std/primitive.char.html#method.to_lowercase
 /// [`char`]: ../../std/primitive.char.html
 #[stable(feature = "rust1", since = "1.0.0")]
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 pub struct ToLowercase(CaseMappingIter);
 
 #[stable(feature = "rust1", since = "1.0.0")]
@@ -81,7 +81,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)]
+#[derive(Debug, Clone)]
 pub struct ToUppercase(CaseMappingIter);
 
 #[stable(feature = "rust1", since = "1.0.0")]
@@ -95,7 +95,7 @@ impl Iterator for ToUppercase {
 #[unstable(feature = "fused", issue = "35602")]
 impl FusedIterator for ToUppercase {}
 
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 enum CaseMappingIter {
     Three(char, char, char),
     Two(char, char),