mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00

actually provide the correct args to coroutine witnesses
rust-lang/rust#145194 accidentally provided all arguments of the closure to the witness, but the witness only takes the generic parameters of the defining scope: 216cdb7b22/compiler/rustc_hir_typeck/src/closure.rs (L164)
Fixes rust-lang/rust#145288