@@ -98,12 +98,12 @@ While we are working on implementing our lint, we can keep running the UI
9898test. That allows us to check if the output is turning into what we want.
9999
100100Once we are satisfied with the output, we need to run
101- ` tests/ui/update-all-references.sh ` to update the ` .stderr ` file for our lint.
101+ ` cargo dev bless ` to update the ` .stderr ` file for our lint.
102102Please note that, we should run ` TESTNAME=foo_functions cargo uitest `
103- every time before running ` tests/ui/update-all-references.sh ` .
103+ every time before running ` cargo dev bless ` .
104104Running ` TESTNAME=foo_functions cargo uitest ` should pass then. When we commit
105105our lint, we need to commit the generated ` .stderr ` files, too. In general, you
106- should only commit files changed by ` tests/ui/update-all-references.sh ` for the
106+ should only commit files changed by ` cargo dev bless ` for the
107107specific lint you are creating/editing. Note that if the generated files are
108108empty, they should be removed.
109109
@@ -122,8 +122,7 @@ we will find by default two new crates, each with its manifest file:
122122If you need more cases, you can copy one of those crates (under ` foo_categories ` ) and rename it.
123123
124124The process of generating the ` .stderr ` file is the same, and prepending the ` TESTNAME `
125- variable to ` cargo uitest ` works too, but the script to update the references
126- is in another path: ` tests/ui-cargo/update-all-references.sh ` .
125+ variable to ` cargo uitest ` works too.
127126
128127## Rustfix tests
129128
@@ -133,7 +132,7 @@ additionally run [rustfix] for that test. Rustfix will apply the suggestions
133132from the lint to the code of the test file and compare that to the contents of
134133a ` .fixed ` file.
135134
136- Use ` tests/ui/update-all-references.sh ` to automatically generate the
135+ Use ` cargo dev bless ` to automatically generate the
137136` .fixed ` file after running the tests.
138137
139138[ rustfix ] : https://github.com/rust-lang/rustfix
@@ -368,7 +367,7 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
368367
369368Now we should also run the full test suite with ` cargo test ` . At this point
370369running ` cargo test ` should produce the expected output. Remember to run
371- ` tests/ui/update-all-references.sh ` to update the ` .stderr ` file.
370+ ` cargo dev bless ` to update the ` .stderr ` file.
372371
373372` cargo test ` (as opposed to ` cargo uitest ` ) will also ensure that our lint
374373implementation is not violating any Clippy lints itself.
0 commit comments