about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2024-10-23 17:24:30 +0200
committerGitHub <noreply@github.com>2024-10-23 17:24:30 +0200
commitf2675002a0a5428fce8cf6691109bff2a8008948 (patch)
tree5a6c2c43681cb69f40f0b449563654e58999679a /compiler/rustc_errors/src/snippet.rs
parent4caa60c032cb6e89d726fc64d0ada02eb3f19419 (diff)
parent28095bc54142f9fbfd4a2cac0a7fadf0ae6e9b9e (diff)
downloadrust-f2675002a0a5428fce8cf6691109bff2a8008948.tar.gz
rust-f2675002a0a5428fce8cf6691109bff2a8008948.zip
Rollup merge of #131181 - dev-ardi:custom-differ, r=jieyouxu
Compiletest: Custom differ

This adds support for a custom differ for compiletests. It’s purely visual and helps produce cleaner output when UI tests fail.

I’m using an environment variable for now since it’s experimental and I don’t want to drill the cli arguments all the way down. Also did a bit of general cleanup while I was at it.

This is how it looks [with debug info silenced](https://github.com/rust-lang/rust/pull/131182) (#131182)
`COMPILETEST_DIFF_TOOL="/usr/bin/env difft --color always --background light --display side-by-side" ./x test tests/ui/parser`
![image](https://github.com/user-attachments/assets/f740ce50-7564-4469-be0a-86e24bc50eb8)
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions