Skip to content

Commit debdeeb

Browse files
authored
Merge pull request #368 from LilyFoote/patch-1
Clarify how to bisect a clippy warning
2 parents e062838 + 3742a12 commit debdeeb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guide/src/examples/clippy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ Note that depending on what you are looking for, this may just find a PR that sy
1111
You may be able to scan the list of changes in that PR to discover what you are looking for.
1212
If the list of changes is too big or nothing is jumping out as a possible culprit, then consider using [`git bisect`] on the clippy repo itself (which will require building clippy).
1313

14+
To bisect a clippy warning, you can upgrade the warning to an error:
15+
16+
```sh
17+
cargo bisect-rustc --start=1.84.0 --end=1.85.0 -c clippy -- clippy -- --forbid clippy::useless_conversion
18+
```
19+
1420
[`rust-clippy`]: https://github.com/rust-lang/rust-clippy/
1521
[`git bisect`]: https://git-scm.com/docs/git-bisect

0 commit comments

Comments
 (0)