diff options
| author | Michael Zhang <hmperson1@gmail.com> | 2019-10-17 12:33:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-17 12:33:42 -0400 |
| commit | 3328cb25cea2c88d0da2093bd509efe5ae6cbe34 (patch) | |
| tree | 2ac123898f8605195395a5e394821d780bfd47d4 /doc | |
| parent | 07c06738b75e047ecf45b0041fcfcbebafed5edd (diff) | |
Update adding_lints.md
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/adding_lints.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/adding_lints.md b/doc/adding_lints.md index af6c3e29701..e171ecaccb9 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -104,8 +104,6 @@ test file and compare that to the contents of a `.fixed` file. Use `tests/ui/update-all-references.sh` to automatically generate the `.fixed` file after running the tests. -With tests in place, let's have a look at implementing our lint now. - ### Edition 2018 tests Some features require the 2018 edition to work (e.g. `async_await`), but @@ -119,6 +117,8 @@ Manually testing against an example file can be useful if you have added some your local modifications, run `env CLIPPY_TESTS=true cargo run --bin clippy-driver -- -L ./target/debug input.rs` from the working copy root. +With tests in place, let's have a look at implementing our lint now. + ### Lint declaration We start by creating a new file in the `clippy_lints` crate. That's the crate |
