about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-26 17:32:51 +0000
committerbors <bors@rust-lang.org>2023-06-26 17:32:51 +0000
commit15ed281699802aae2364b77a4e9900a9acad3d0d (patch)
treeb254dc3fbe51fef375f2dd050424b9acd9a2801f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2a9cc31ac70c4a28781f5e715ab2316fcdbba14f (diff)
parent0a87ce866244dd3d23270f438819d5418f736262 (diff)
downloadrust-15ed281699802aae2364b77a4e9900a9acad3d0d.tar.gz
rust-15ed281699802aae2364b77a4e9900a9acad3d0d.zip
Auto merge of #10426 - oli-obk:ui_test, r=Manishearth
Port clippy away from compiletest to ui_test

Reasons to do this:

* runs completely on stable Rust
* is easier to extend with new features
* has its own dogfood test suite, so changes can be tested in [the `ui_test` repo](https://github.com/oli-obk/ui_test)
* supports dependencies from crates.io without having to manually fiddle with command line flags
* supports `ui-cargo`, `ui`, `ui-toml` out of the box, no need to find and run the tests ourselves

One thing that is a big difference to `compiletest` is that if a test emits *any* error, you need to mark all of them with `//~ ERROR:` annotations. Since many clippy tests did not have annotations, I changed many lints to be `warn` in their test so that only the `stderr` output is tested.

TODO:

* [ ] check that this still works as a subtree in the rustc repo

changelog: none
<!-- changelog_checked -->

Note: at present the latest changes needed for clippy are only available as a git dependency, but I expect to publish a new crates.io version soon
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions