File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,19 @@ Of course there's little sense in writing the output yourself or copying it arou
73
73
Therefore you can simply run ` tests/ui/update-all-references.sh ` and check whether
74
74
the output looks as you expect with ` git diff ` . Commit all ` *.stderr ` files, too.
75
75
76
+ ### Testing manually
77
+
78
+ Manually testing against an example file is useful if you have added some
79
+ ` println! ` s and test suite output becomes unreadable. To try clippy with your
80
+ local modifications, run ` cargo run -- -L ./target/debug input.rs ` from the
81
+ working copy root. Your test file, here ` input.rs ` , needs to have clippy
82
+ enabled as a plugin:
83
+
84
+ ``` rust
85
+ #![feature(plugin)]
86
+ #![plugin(clippy)]
87
+ ```
88
+
76
89
## Contributions
77
90
78
91
Clippy welcomes contributions from everyone.
You can’t perform that action at this time.
0 commit comments