mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 03:36:21 +00:00

In `report_fullfillment_errors` push back `T: Sized`, `T: WellFormed` and coercion errors to the end of the list. The pre-existing deduplication logic eliminates redundant errors better that way, keeping the resulting output with fewer errors than before, while also having more detail.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.