Files
rust/tests/ui/impl-trait
Matthias Krüger 7e3d872bc0 Rollup merge of #136415 - estebank:highlight-clarification, r=compiler-errors
Highlight clarifying information in "expected/found" error

When the expected and found types have the same textual representation, we add clarifying in parentheses. We now visually highlight it in the output.

Detect a corner case where the clarifying information would be the same for both types and skip it, as it doesn't add anything useful.

![Screenshot of the rustc highlighted output on the terminal](https://github.com/user-attachments/assets/aa4b9433-5332-4941-b2c2-1a43e5cadff7)
2025-02-02 18:05:24 +01:00
..
2024-08-17 12:43:25 -04:00
2024-12-05 00:56:04 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-02-07 10:42:01 +08:00
2024-08-17 12:43:25 -04:00
2024-06-13 10:41:52 +00:00
2024-04-08 15:00:03 +00:00
2024-08-17 12:43:25 -04:00
2024-02-07 10:42:01 +08:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:40:29 +00:00