Update adding_lints.md

This commit is contained in:
Michael Zhang 2019-10-17 12:33:42 -04:00 committed by GitHub
parent 07c06738b7
commit 3328cb25ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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