Skip to content

Commit

Permalink
impl TrustedLen for vec::Drain
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 authored Nov 25, 2019
1 parent a44774c commit f8a4b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {}

Expand Down

0 comments on commit f8a4b6d

Please sign in to comment.