From 5f689fe466b6ed0d63e5d5f732804bb74c07b58d Mon Sep 17 00:00:00 2001
From: Oliver Middleton <olliemail27@gmail.com>
Date: Mon, 3 Feb 2020 22:30:17 +0000
Subject: [PATCH] Remove Copy impl from OnceWith

Iterators typically don't implement `Copy` and this shouldn't be an exception.
---
 src/libcore/iter/sources.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index 5a31acab273f1..a1d4e1b31e9b1 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -398,7 +398,7 @@ pub fn once<T>(value: T) -> Once<T> {
 /// See its documentation for more.
 ///
 /// [`once_with`]: fn.once_with.html
-#[derive(Copy, Clone, Debug)]
+#[derive(Clone, Debug)]
 #[stable(feature = "iter_once_with", since = "1.43.0")]
 pub struct OnceWith<F> {
     gen: Option<F>,