diff options
| author | Christopher Durham <cad97@cad97.com> | 2019-11-25 17:55:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-25 17:55:26 -0500 |
| commit | f8a4b6d2ba2ad2a0897cd26cf6196cca23045f96 (patch) | |
| tree | 468393cb4a3d7b5d973a9368b62616d877273963 /src/liballoc | |
| parent | a44774c3a9739b2eea8923e09d67b14312c78ef3 (diff) | |
| download | rust-f8a4b6d2ba2ad2a0897cd26cf6196cca23045f96.tar.gz rust-f8a4b6d2ba2ad2a0897cd26cf6196cca23045f96.zip | |
impl TrustedLen for vec::Drain
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 07e4358d644..ab9e2a23cb0 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -2701,6 +2701,9 @@ impl<T> ExactSizeIterator for Drain<'_, T> { } } +#[unstable(feature = "trusted_len", issue = "37572")] +unsafe impl<T> TrustedLen for Drain<'_, T> {} + #[stable(feature = "fused", since = "1.26.0")] impl<T> FusedIterator for Drain<'_, T> {} |
