]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,nikomatsakis
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 18 Feb 2022 22:23:09 +0000 (23:23 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Feb 2022 22:23:09 +0000 (23:23 +0100)
commit1e2f63de0a5e9a32d97d355f6351665e77455be2
treee9da306098401bf54ecc4feff35942c30bd5eab1
parentcb35370557ecea46d7b36237b9c60bfa105c8de5
parent879e4f8131b71050b00407befd6f1669389fe9ed
Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,nikomatsakis

Only mark projection as ambiguous if GAT substs are constrained

A slightly more targeted version of #92917, where we only give up with ambiguity if we infer something about the GATs substs when probing for a projection candidate.

fixes #93874
also note (but like the previous PR, does not fix) #91762

r? `@jackh726`
cc `@nikomatsakis` who reviewed #92917
compiler/rustc_infer/src/infer/type_variable.rs
compiler/rustc_trait_selection/src/traits/project.rs
compiler/rustc_trait_selection/src/traits/select/mod.rs