about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-07-03 13:40:14 -0400
committerTrevor Gross <tmgross@umich.edu>2023-07-26 16:54:02 -0400
commit9439e02fb2332d6ffed6a61f95923204faa82655 (patch)
tree7a809ae07015f9fa21b0f29c9505a835594e3f79 /compiler/rustc_errors/src/snippet.rs
parent6908c73ab0a440dc47a65b19edd2d013aeb48c15 (diff)
downloadrust-9439e02fb2332d6ffed6a61f95923204faa82655.tar.gz
rust-9439e02fb2332d6ffed6a61f95923204faa82655.zip
Unite bless environment variables under `RUSTC_BLESS`
Currently, Clippy, Miri, Rustfmt, and rustc all use an environment variable to
indicate that output should be blessed, but they use different variable names.
In order to improve consistency, this patch applies the following changes:

- Emit `RUSTC_BLESS` within `prepare_cargo_test` so it is always
  available
- Change usage of `MIRI_BLESS` in the Miri subtree to use `RUSTC_BLESS`
- Change usage of `BLESS` in the Clippy subtree to `RUSTC_BLESS`
- Change usage of `BLESS` in the Rustfmt subtree to `RUSTC_BLESS`
- Adjust the blessable test in `rustc_errors` to use this same
  convention
- Update documentation where applicable

Any tools that uses `RUSTC_BLESS` should check that it is set to any value
other than `"0"`.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions