]> git.lizzy.rs Git - rust.git/commit
Always return tupled_upvar_tys for Closure/Generator consituent tys
authorAman Arora <me@aman-arora.com>
Fri, 2 Oct 2020 01:06:16 +0000 (21:06 -0400)
committerAman Arora <me@aman-arora.com>
Sun, 11 Oct 2020 07:32:35 +0000 (03:32 -0400)
commit08d1ab0bf1c01948135548f5404eb625e454160e
tree4323316571eb460e12e350334466dee41a8e5867
parentdc183702da942f4a25bff99b2bb6073d1aa7c9f9
Always return tupled_upvar_tys for Closure/Generator consituent tys

Depending on if upvar_tys inferred or not, we were returning either an
inference variable which later resolves to a tuple or else the upvar tys
themselves

Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
compiler/rustc_trait_selection/src/traits/select/mod.rs
src/test/ui/async-await/issue-68112.stderr
src/test/ui/generator/issue-68112.stderr
src/test/ui/generator/print/generator-print-verbose-1.stderr
src/test/ui/impl-trait/auto-trait-leak2.stderr