rust/compiler/rustc_trait_selection/src
Dylan DPC c6bb219fc4
Rollup merge of #93469 - compiler-errors:issue-93450, r=estebank
Skip pointing out ambiguous impls in alloc/std crates too in inference errors

This generalizes the logic in `annotate_source_of_ambiguity` to skip printing ambiguity errors traits in `alloc` and `std` as well, not just `core`.

While this does spot-fix the issue mentioned below, it would be nicer to generalize this logic, for example to detect when the trait predicate's `self_ty` has any numerical inference variables. Is it worthwhile to scrap this solution for one like that?

Fixes #93450

r? `@estebank`
feel free to reassign
2022-03-27 05:36:08 +02:00
..
traits Rollup merge of #93469 - compiler-errors:issue-93450, r=estebank 2022-03-27 05:36:08 +02:00
autoderef.rs Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
infer.rs Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
lib.rs suggest enabling generic_const_exprs feature if const is unevaluatable 2022-03-09 14:47:50 -08:00
opaque_types.rs Overhaul Const. 2022-02-15 16:19:59 +11:00