File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use fmt;
12
12
use marker;
13
13
use usize;
14
14
15
- use super :: FusedIterator ;
15
+ use super :: { FusedIterator , TrustedLen } ;
16
16
17
17
/// An iterator that repeats an element endlessly.
18
18
///
@@ -138,6 +138,9 @@ impl<T> ExactSizeIterator for Empty<T> {
138
138
}
139
139
}
140
140
141
+ #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
142
+ unsafe impl < T > TrustedLen for Empty < T > { }
143
+
141
144
#[ unstable( feature = "fused" , issue = "35602" ) ]
142
145
impl < T > FusedIterator for Empty < T > { }
143
146
@@ -216,6 +219,9 @@ impl<T> ExactSizeIterator for Once<T> {
216
219
}
217
220
}
218
221
222
+ #[ unstable( feature = "trusted_len" , issue = "37572" ) ]
223
+ unsafe impl < T > TrustedLen for Once < T > { }
224
+
219
225
#[ unstable( feature = "fused" , issue = "35602" ) ]
220
226
impl < T > FusedIterator for Once < T > { }
221
227
You can’t perform that action at this time.
0 commit comments