Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to bisect a clippy warning #368

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions guide/src/examples/clippy.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ Note that depending on what you are looking for, this may just find a PR that sy
You may be able to scan the list of changes in that PR to discover what you are looking for.
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).

To bisect a clippy warning, you can upgrade the warning to an error:

```sh
cargo bisect-rustc --start=1.84.0 --end=1.85.0 -c clippy -- clippy -- --forbid clippy::useless_conversion
```

[`rust-clippy`]: https://github.com/rust-lang/rust-clippy/
[`git bisect`]: https://git-scm.com/docs/git-bisect