coroutine_closure_to_ambiguous_coroutine in rustc_next_trait_solver::solve::assembly::structural_traits - Rust
Description: Given a coroutine-closure, project to its returned coroutine when we are not certain that the closure’s kind is compatible with the goal, and therefore also don’t know yet what the closure’s upvars are.

Skip to main content

## coroutine_closure_to_ambiguous_coroutine

# Function coroutine_closure_to_ambiguous_coroutine

Source

    fn coroutine_closure_to_ambiguous_coroutine<I: Interner>(
        cx: I,
        goal_kind: ClosureKind,
        goal_region: I::Region,
        def_id: I::CoroutineClosureId,
        args: CoroutineClosureArgs<I>,
        sig: CoroutineClosureSignature<I>,
    ) -> I::Ty

Expand description

Given a coroutine-closure, project to its returned coroutine when we are not certain that the closure’s kind is compatible with the goal, and therefore also don’t know yet what the closure’s upvars are.

Note that we do not also push a `AsyncFnKindHelper` goal here.