@@ -55,7 +55,7 @@ we want to check. The output of Clippy is compared against a `.stderr` file.
55
55
Note that you don't have to create this file yourself, we'll get to
56
56
generating the ` .stderr ` files further down.
57
57
58
- We start by opening the test file created at ` tests/ui/foo_functions.rs ` .
58
+ We start by opening the test file created at ` tests/ui/foo_functions.rs ` .
59
59
60
60
Update the file with some examples to get started:
61
61
@@ -102,7 +102,7 @@ Once we are satisfied with the output, we need to run
102
102
` tests/ui/update-all-references.sh ` to update the ` .stderr ` file for our lint.
103
103
Please note that, we should run ` TESTNAME=foo_functions cargo uitest `
104
104
every time before running ` tests/ui/update-all-references.sh ` .
105
- Running ` TESTNAME=foo_functions cargo uitest ` should pass then. When we commit
105
+ Running ` TESTNAME=foo_functions cargo uitest ` should pass then. When we commit
106
106
our lint, we need to commit the generated ` .stderr ` files, too.
107
107
108
108
### Rustfix tests
@@ -133,7 +133,7 @@ With tests in place, let's have a look at implementing our lint now.
133
133
134
134
### Lint declaration
135
135
136
- Let's start by opening the new file created in the ` clippy_lints ` crate
136
+ Let's start by opening the new file created in the ` clippy_lints ` crate
137
137
at ` clippy_lints/src/foo_functions.rs ` . That's the crate where all the
138
138
lint code is. This file has already imported some initial things we will need:
139
139
@@ -178,7 +178,7 @@ state the thing that is being checked for and read well when used with
178
178
* The last part should be a text that explains what exactly is wrong with the
179
179
code
180
180
181
- The rest of this file contains an empty implementation for our lint pass,
181
+ The rest of this file contains an empty implementation for our lint pass,
182
182
which in this case is ` EarlyLintPass ` and should look like this:
183
183
184
184
``` rust
@@ -194,7 +194,7 @@ impl EarlyLintPass for FooFunctions {}
194
194
Don't worry about the ` name ` method here. As long as it includes the name of the
195
195
lint pass it should be fine.
196
196
197
- The new lint automation runs ` update_lints ` , which automates some things, but it
197
+ The new lint automation runs ` update_lints ` , which automates some things, but it
198
198
doesn't automate everything. We will have to register our lint pass manually in
199
199
the ` register_plugins ` function in ` clippy_lints/src/lib.rs ` :
200
200
0 commit comments