]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.


Trivial merge