rust/compiler/rustc_errors
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
..
src Rollup merge of #136415 - estebank:highlight-clarification, r=compiler-errors 2025-02-02 18:05:24 +01:00
Cargo.toml bumpt compiler and tools to windows 0.59 2025-01-21 16:48:44 +03:00
messages.ftl Implement diagnostic translation for expected lifetime parameter message 2023-07-07 15:56:01 +09:00