1
Fork 0

mark SourceIter as unsafe, document invariants

This commit is contained in:
The8472 2019-11-15 01:18:30 +01:00
parent bb2d533bb9
commit 2a327394e4
3 changed files with 52 additions and 18 deletions

View file

@ -2826,7 +2826,7 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter<T> {
unsafe impl<T> InPlaceIterable for IntoIter<T> {}
#[unstable(issue = "0", feature = "inplace_iteration")]
impl<T> SourceIter for IntoIter<T> {
unsafe impl<T> SourceIter for IntoIter<T> {
type Source = IntoIter<T>;
#[inline]