1
Fork 0

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
No known key found for this signature in database
GPG key ID: 8EA6B43ED4CE0911
3 changed files with 21 additions and 1 deletions

View file

@ -308,6 +308,7 @@ language_item_table! {
FuturePoll, sym::poll, future_poll_fn, Target::Method(MethodKind::Trait { body: false }), GenericRequirement::None;
AsyncIteratorPollNext, sym::async_iterator_poll_next, async_iterator_poll_next, Target::Method(MethodKind::Trait { body: false }), GenericRequirement::Exact(0);
IntoAsyncIterIntoIter, sym::into_async_iter_into_iter, into_async_iter_into_iter, Target::Method(MethodKind::Trait { body: false }), GenericRequirement::Exact(0);
Option, sym::Option, option_type, Target::Enum, GenericRequirement::None;
OptionSome, sym::Some, option_some_variant, Target::Variant, GenericRequirement::None;