From 91eda96e38a6244d82e3a9dad65b19048e2462df Mon Sep 17 00:00:00 2001 From: mbartlett21 Date: Tue, 15 Mar 2022 06:07:18 +0000 Subject: [PATCH] Unstably constify `impl IntoIterator for I: ~const Iterator` --- library/core/src/iter/traits/collect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/iter/traits/collect.rs b/library/core/src/iter/traits/collect.rs index 7b75ab96ee7..e6900742c31 100644 --- a/library/core/src/iter/traits/collect.rs +++ b/library/core/src/iter/traits/collect.rs @@ -267,8 +267,9 @@ pub trait IntoIterator { fn into_iter(self) -> Self::IntoIter; } +#[rustc_const_unstable(feature = "const_intoiterator_identity", issue = "90603")] #[stable(feature = "rust1", since = "1.0.0")] -impl IntoIterator for I { +impl const IntoIterator for I { type Item = I::Item; type IntoIter = I;