Skip to content

Commit d7b5985

Browse files
committed
Rollup merge of rust-lang#48629 - strake:char, r=alexcrichton
Fixes rust-lang#47311. r? @nrc
2 parents d40c195 + 5ac4f62 commit d7b5985

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd_unicode/char.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub use version::UnicodeVersion;
5959
/// [`to_lowercase`]: ../../std/primitive.char.html#method.to_lowercase
6060
/// [`char`]: ../../std/primitive.char.html
6161
#[stable(feature = "rust1", since = "1.0.0")]
62-
#[derive(Debug)]
62+
#[derive(Debug, Clone)]
6363
pub struct ToLowercase(CaseMappingIter);
6464

6565
#[stable(feature = "rust1", since = "1.0.0")]
@@ -81,7 +81,7 @@ impl FusedIterator for ToLowercase {}
8181
/// [`to_uppercase`]: ../../std/primitive.char.html#method.to_uppercase
8282
/// [`char`]: ../../std/primitive.char.html
8383
#[stable(feature = "rust1", since = "1.0.0")]
84-
#[derive(Debug)]
84+
#[derive(Debug, Clone)]
8585
pub struct ToUppercase(CaseMappingIter);
8686

8787
#[stable(feature = "rust1", since = "1.0.0")]
@@ -95,7 +95,7 @@ impl Iterator for ToUppercase {
9595
#[unstable(feature = "fused", issue = "35602")]
9696
impl FusedIterator for ToUppercase {}
9797

98-
#[derive(Debug)]
98+
#[derive(Debug, Clone)]
9999
enum CaseMappingIter {
100100
Three(char, char, char),
101101
Two(char, char),

0 commit comments

Comments
 (0)