about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-05 09:33:38 +0000
committerbors <bors@rust-lang.org>2022-04-05 09:33:38 +0000
commit01ea6241ae276d45ad20d8ce44a18664a9078772 (patch)
treebe8094bfbf0076b312304cc34d69c08ef7d04280 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent8ec7ba44bd558cd7e6d6209f3feab9e0c6ee742f (diff)
parent9a02386fd8f95303c4319bb3a18f8777e7908bcb (diff)
downloadrust-01ea6241ae276d45ad20d8ce44a18664a9078772.tar.gz
rust-01ea6241ae276d45ad20d8ce44a18664a9078772.zip
Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate
Allow running `cargo dev lint` on a package directory

Allows you run the local clippy in a specified directory, e.g. allowing

```sh
# Lint a ui-cargo test
cargo dev lint tests/ui-cargo/wildcard_dependencies/fail

# Lint some other project
cargo dev lint ~/my-project
```

The `target` directory is set to a tempdir which isn't ideal for medium/large projects as it would be compiled from scratch. This is to avoid cached clippy messages where you `cargo dev lint dir`, change something in clippy, and run `cargo dev lint dir` again

changelog: Dev: `cargo dev lint` can now be run on a package directory
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions