Skip to content

Commit 8590926

Browse files
committed
Remind to run update-all-references.sh at the end
1 parent 2537232 commit 8590926

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/adding_lints.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,12 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
260260
}
261261
```
262262

263-
Now you'll want to also run the full test suite with `cargo test`. Apart from
264-
running all other UI tests, this ensures that our lint implementation is not
265-
violating any Clippy lints itself.
263+
Now you'll want to also run the full test suite with `cargo test`. At this point
264+
running `cargo test` should produce the expected output. Remember to run
265+
`tests/ui/update-all-references.sh` to update the `.stderr` file.
266+
267+
`cargo test` (as opposed to `cargo uitest`) will also ensure that our lint
268+
implementation is not violating any Clippy lints itself.
266269

267270
If you are still following the example, you'll see that the `FooFunctionsPass`
268271
violates a Clippy lint. So we are going to rename that struct to just `Pass`:

0 commit comments

Comments
 (0)