Skip to content

Commit 4c8a941

Browse files
committed
Auto merge of #4465 - JohnTitor:add-note-to-fix-toolstate, r=flip1995
Add note to fix toolstate The idea from #4462 (comment) It's nice that we have the documentation to guide fix toolstate. changelog: none
2 parents 9936d36 + 2c58936 commit 4c8a941

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CONTRIBUTING.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,28 @@ using that version of Rust.
145145

146146
You can use [rustup-toolchain-install-master][rtim] to do that:
147147

148-
```
148+
```bash
149149
cargo install rustup-toolchain-install-master
150150
rustup-toolchain-install-master -n master --force
151151
rustup override set master
152152
cargo test
153153
```
154154

155+
After fixing the build failure on this repository, we can submit a pull request
156+
to [`rust-lang/rust`] to fix the toolstate.
157+
158+
To submit a pull request, you should follow these steps:
159+
160+
```bash
161+
# Assuming you already cloned the rust-lang/rust repo and you're in the correct directory
162+
git submodule update --remote src/tools/clippy
163+
cargo update -p clippy
164+
git add -u
165+
git commit -m "Update Clippy"
166+
./x.py test -i --stage 1 src/tools/clippy # This is optional and should succeed anyway
167+
# Open a PR in rust-lang/rust
168+
```
169+
155170
## Issue and PR triage
156171

157172
Clippy is following the [Rust triage procedure][triage] for issues and pull
@@ -211,3 +226,4 @@ or the [MIT](http://opensource.org/licenses/MIT) license.
211226
[homu]: https://github.com/servo/homu
212227
[homu_instructions]: https://buildbot2.rust-lang.org/homu/
213228
[homu_queue]: https://buildbot2.rust-lang.org/homu/queue/clippy
229+
[`rust-lang/rust`]: https://github.com/rust-lang/rust

0 commit comments

Comments
 (0)