diff options
| author | Jieyou Xu <jieyouxu@outlook.com> | 2024-12-05 08:09:02 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-12-10 11:29:43 +0800 |
| commit | b5c7a552502e6d27f96a1b7edf1b86d703dbad8a (patch) | |
| tree | c1f70ecb8666b2191c5d1da10de1af3c61185a37 /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | dd3b313b56f34e21cd79d610cdf4e501a4bb8c4e (diff) | |
| download | rust-b5c7a552502e6d27f96a1b7edf1b86d703dbad8a.tar.gz rust-b5c7a552502e6d27f96a1b7edf1b86d703dbad8a.zip | |
Adjust `allow-non-lint-warnings.rs`
- Document `allow-non-lint-warnings.rs`
- Move `allow-non-lint-warnings.rs` under `tests/ui/diagnostic-flags/`
- Improve the test to use two *differential* revisions:
1. One revision checks that without `-A warnings` the code sample
actually emits a warning.
2. The other revision checks that `-A warnings` suppresses the
warning.
This makes sure that if the code sample no longer warns, the test
doesn't silently pass but fail to check its intended purpose.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
