rust/compiler/rustc_trait_selection/src
Matthias Krüger a11e2b1f75
Rollup merge of #92917 - jackh726:issue-91762-2, r=nikomatsakis
Don't constrain projection predicates with inference vars in GAT substs

cc #91762

Not a fix, but a mitigation to prevent a backwards-compatible hazard where we normalize using a predicate only because it's the only one available, but shouldn't. This would constrain an inference variable which didn't really want. We already do this when selecting a projection candidate, which isn't always correct. But changing that is a problem for a different day.

Also found out that a suggestion for `await`ing a future was using the wrong substs.

r? ``@nikomatsakis``
2022-02-08 16:40:48 +01:00
..
traits Rollup merge of #92917 - jackh726:issue-91762-2, r=nikomatsakis 2022-02-08 16:40:48 +01:00
autoderef.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
infer.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
lib.rs add a rustc::query_stability lint 2022-02-01 10:15:59 +01:00
opaque_types.rs Bail out early if there already were errors 2022-02-02 15:40:12 +00:00