]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #87200 - oli-obk:fixup_fixup_opaque_types, r=nikomatsakis
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 16 Jul 2021 17:54:12 +0000 (19:54 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Jul 2021 17:54:12 +0000 (19:54 +0200)
TAIT: Infer all inference variables in opaque type substitutions via InferCx

The previous algorithm was correct for the example given in its
documentation, but when the TAIT was declared as a free item
instead of an associated item, the generic parameters were the
wrong ones.

cc `@spastorino`

r? `@nikomatsakis`

1  2 
compiler/rustc_middle/src/ty/mod.rs

Simple merge