diff options
| author | bors <bors@rust-lang.org> | 2017-10-17 03:11:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-17 03:11:52 +0000 |
| commit | db80da1c1a20529054ce6745a6219c2108693fb7 (patch) | |
| tree | 65d0bbe8a8a06f5517c833c41b2b0532db9de171 | |
| parent | 90691c8c1f8b4ece2a4f831a130ae087056b0083 (diff) | |
| parent | 9e8b33e811bca10e23bb9e80445122a8ab31225c (diff) | |
| download | rust-db80da1c1a20529054ce6745a6219c2108693fb7.tar.gz rust-db80da1c1a20529054ce6745a6219c2108693fb7.zip | |
Auto merge of #45179 - cuviper:result-intoiter-clone, r=BurntSushi
core: derive Clone for result::IntoIter It appears to be a simple oversight that `result::IntoIter<T>` doesn't implement `Clone` (where `T: Clone`). We do already have `Clone` for `result::Iter`, as well as the similar `option::IntoIter` and `Iter`.
| -rw-r--r-- | src/libcore/result.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs index ea064ca5c39..db5bffced10 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -1060,7 +1060,7 @@ unsafe impl<'a, A> TrustedLen for IterMut<'a, A> {} /// [`Result`]: enum.Result.html /// [`into_iter`]: ../iter/trait.IntoIterator.html#tymethod.into_iter /// [`IntoIterator`]: ../iter/trait.IntoIterator.html -#[derive(Debug)] +#[derive(Clone, Debug)] #[stable(feature = "rust1", since = "1.0.0")] pub struct IntoIter<T> { inner: Option<T> } |
