]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107499 - compiler-errors:deduce_sig_from_projection-generator-tweak...
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 1 Feb 2023 04:54:39 +0000 (05:54 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 04:54:39 +0000 (05:54 +0100)
commita37a59f45e40434cff2b5a23402b0bec42cce848
treefade9a83dabf61f89d0a034cbd918b7061ee1fbb
parent6390d25eab41efdbb96e6d42a67fd98d64469317
parent7892cc3c5f6532a18338ce989ea1639af5e417b4
Rollup merge of #107499 - compiler-errors:deduce_sig_from_projection-generator-tweak, r=michaelwoerister

Do not depend on Generator trait when deducing closure signature

1. Do not depend on `Generator` trait when deducing closure signature.
2. Compare the name of the `Generator::Return` associated item, rather than its order in the trait. Seems more stable this way.