mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 05:17:18 +00:00
Don't ICE when ambiguity is found when selecting `Index` implementation in typeck Fixes #118111 The problem here is when we're manually "selecting" an impl for `base_ty: Index<?0>`, we don't consider placeholder region errors (leak check) or ambiguous predicates. Those can lead to us not actually emitting any fulfillment errors on line 3131.