diff --git a/doc/adding_lints.md b/doc/adding_lints.md index 1d78a27820a6..52d700f386c6 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -101,7 +101,9 @@ Once we are satisfied with the output, we need to run Please note that, we should run `TESTNAME=foo_functions cargo uitest` every time before running `tests/ui/update-all-references.sh`. Running `TESTNAME=foo_functions cargo uitest` should pass then. When we commit -our lint, we need to commit the generated `.stderr` files, too. +our lint, we need to commit the generated `.stderr` files, too. In general you +should only run `tests/ui/update-all-references.sh` for the specific lint you are +creating/editing. ## Rustfix tests diff --git a/tests/ui/redundant_pattern_matching.rs b/tests/ui/redundant_pattern_matching.rs index 1ac9b281eec0..2b2d5b1c1ec6 100644 --- a/tests/ui/redundant_pattern_matching.rs +++ b/tests/ui/redundant_pattern_matching.rs @@ -64,7 +64,6 @@ fn main() { let _ = does_something(); let _ = returns_unit(); - let _ = issue_5271(); let opt = Some(false); let x = if let Some(_) = opt { true } else { false };