File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,10 @@ Compiling clippy can take almost a minute or more depending on your machine.
39
39
You can set the environment flag ` CARGO_INCREMENTAL=1 ` to cut down that time to
40
40
almost a third on average, depending on the influence your change has.
41
41
42
- Clippy uses its own version of UI tests. Run ` cargo test examples ` to run only the ui tests.
43
- This will update all the ` *.stderr ` files in ` clippy_tests/examples ` . You need to check
44
- the stderr files whether they look as you expected them and commit them together with your
45
- changes.
46
- When you want to test a new lint, just create a new file in ` clippy_tests/examples ` and
47
- rerun ` cargo test examples ` .
48
-
49
- You can check just one example by running ` cargo run --example example_name ` inside the
50
- ` clippy_tests ` directory.
42
+ Clippy uses UI tests. UI tests check that the output of the compiler is exactly as expected.
43
+ Of course there's little sense in writing the output yourself or copying it around.
44
+ Therefore you can simply run ` tests/ui/update-all-references.sh ` and check whether
45
+ the output looks as you expect with ` git diff ` . Commit all ` *.stderr ` files, too.
51
46
52
47
Also please document your lint with a doc comment akin to the following:
53
48
``` rust
You can’t perform that action at this time.
0 commit comments