6

Prevent error reporting from outputting a recursion error if it finds an ambiguo...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/89576
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

tom7980 commented 15 days ago

edited

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK