Skip to content

Commit 56b07a8

Browse files
committed
add note about update-all-refs script, revert redundant pat to master
1 parent f34d1b0 commit 56b07a8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/adding_lints.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ Once we are satisfied with the output, we need to run
101101
Please note that, we should run `TESTNAME=foo_functions cargo uitest`
102102
every time before running `tests/ui/update-all-references.sh`.
103103
Running `TESTNAME=foo_functions cargo uitest` should pass then. When we commit
104-
our lint, we need to commit the generated `.stderr` files, too.
104+
our lint, we need to commit the generated `.stderr` files, too. In general you
105+
should only run `tests/ui/update-all-references.sh` for the specific lint you are
106+
creating/editing.
105107

106108
## Rustfix tests
107109

tests/ui/redundant_pattern_matching.rs

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ fn main() {
6464

6565
let _ = does_something();
6666
let _ = returns_unit();
67-
let _ = issue_5271();
6867

6968
let opt = Some(false);
7069
let x = if let Some(_) = opt { true } else { false };

0 commit comments

Comments
 (0)