Use IntoAsyncIterator in for await loop desugaring

This commit is contained in:
Eric Holk
2023-12-18 17:08:19 -08:00
parent 8e34391d6a
commit acb6f17adf
3 changed files with 21 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ pub trait IntoAsyncIterator {
type IntoAsyncIter: AsyncIterator<Item = Self::Item>;
/// Converts `self` into an async iterator
#[cfg_attr(not(bootstrap), lang = "into_async_iter_into_iter")]
fn into_async_iter(self) -> Self::IntoAsyncIter;
}