about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-02 18:05:24 +0100
committerGitHub <noreply@github.com>2025-02-02 18:05:24 +0100
commit7e3d872bc061975683a158b115ae6d5d7401a66f (patch)
treeb82f7951081be9e8ad2f77a63b4ed012ba75b276 /compiler/rustc_codegen_llvm/src/back/write.rs
parente066208255b92685ae5a7f256ecf418f1023ce1b (diff)
parentc75e601543ebefb14796041a521b7a5c2ae917de (diff)
downloadrust-7e3d872bc061975683a158b115ae6d5d7401a66f.tar.gz
rust-7e3d872bc061975683a158b115ae6d5d7401a66f.zip
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)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions