rust/compiler/rustc_trait_selection/src
bors e0aaffd8a4 Auto merge of #89576 - tom7980:issue-89275-fix, r=estebank
Prevent error reporting from outputting a recursion error if it finds an ambiguous trait impl during suggestions

Closes #89275

This fixes the compiler reporting a recursion error during another already in progress error by trying to make a conversion method suggestion and encounters ambiguous trait implementations that can convert a the original type into a type that can then be recursively converted into itself via another method in the trait.

Updated OverflowError struct to be an enum so I could differentiate between passes - it's no longer a ZST but I don't think that should be a problem as they only generate when there's an error in compiling code anyway
2021-10-08 11:44:45 +00:00
..
traits Auto merge of #89576 - tom7980:issue-89275-fix, r=estebank 2021-10-08 11:44:45 +00:00
autoderef.rs Improve help for recursion limit errors 2021-09-28 22:17:13 +02:00
infer.rs Remove ToPredicate impls that use Binder::dummy 2021-09-15 20:54:50 -04:00
lib.rs Refactor vtable format. 2021-07-20 22:14:42 +08:00
opaque_types.rs More tracing instrumentation 2021-09-28 12:28:22 +00:00