Skip to content

Commit f8a4b6d

Browse files
authored
impl TrustedLen for vec::Drain
1 parent a44774c commit f8a4b6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/liballoc/vec.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,9 @@ impl<T> ExactSizeIterator for Drain<'_, T> {
27012701
}
27022702
}
27032703

2704+
#[unstable(feature = "trusted_len", issue = "37572")]
2705+
unsafe impl<T> TrustedLen for Drain<'_, T> {}
2706+
27042707
#[stable(feature = "fused", since = "1.26.0")]
27052708
impl<T> FusedIterator for Drain<'_, T> {}
27062709

0 commit comments

Comments
 (0)