From 3328cb25cea2c88d0da2093bd509efe5ae6cbe34 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 17 Oct 2019 12:33:42 -0400 Subject: [PATCH] Update adding_lints.md --- doc/adding_lints.md | 4 ++-- 1 file 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