From b348aae767aec2680affe090b10a6bc0af85bc7c Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Wed, 28 Aug 2019 02:54:03 +0900 Subject: [PATCH] Add note to avoid confusing --- doc/adding_lints.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/adding_lints.md b/doc/adding_lints.md index c9816911a82..1fb26c66d9f 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -86,6 +86,8 @@ test. That allows us to check if the output is turning into what we want. Once we are satisfied with the output, we need to run `tests/ui/update-all-references.sh` to update the `.stderr` file for our lint. +Please note that, we should run `TESTNAME=ui/foo_functions cargo uitest` +every time before running `tests/ui/update-all-references.sh`. Running `TESTNAME=ui/foo_functions cargo uitest` should pass then. When we commit our lint, we need to commit the generated `.stderr` files, too.