Skip to content

Commit f2d33c2

Browse files
committed
Auto merge of #4459 - JohnTitor:update-testing-notes, r=flip1995
Add note to avoid confusing Fixes #4456 changelog: none
2 parents 949b347 + b348aae commit f2d33c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/adding_lints.md

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ test. That allows us to check if the output is turning into what we want.
8686

8787
Once we are satisfied with the output, we need to run
8888
`tests/ui/update-all-references.sh` to update the `.stderr` file for our lint.
89+
Please note that, we should run `TESTNAME=ui/foo_functions cargo uitest`
90+
every time before running `tests/ui/update-all-references.sh`.
8991
Running `TESTNAME=ui/foo_functions cargo uitest` should pass then. When we
9092
commit our lint, we need to commit the generated `.stderr` files, too.
9193

0 commit comments

Comments
 (0)