(According to the plan in rust-lang-nursery/rust-toolstate#5)
cc @nikomatsakis @kennytm @Michael-F-Bryan
@kennytm Could you tag this with Help-Wanted?
Instructions
Background: We have a cool tool called toolstate which posts a message on PRs that break dependent crates (e.g. clippy). For example, it might generate a post like this. There is also a web portal: https://rust-lang-nursery.github.io/rust-toolstate/
Objective: Currently the rustc-guide is not tracked by toolstate, but we want it to be. This will help us detect when the compiler changes and the guide needs to be updated. However, some infrastructure work is needed for this to work.
Steps
Feel free to ping me on this thread if you need help :)
(According to the plan in rust-lang-nursery/rust-toolstate#5)
cc @nikomatsakis @kennytm @Michael-F-Bryan
@kennytm Could you tag this with Help-Wanted?
Instructions
Background: We have a cool tool called
toolstatewhich posts a message on PRs that break dependent crates (e.g.clippy). For example, it might generate a post like this. There is also a web portal: https://rust-lang-nursery.github.io/rust-toolstate/Objective: Currently the rustc-guide is not tracked by toolstate, but we want it to be. This will help us detect when the compiler changes and the guide needs to be updated. However, some infrastructure work is needed for this to work.
Steps
mdbookandmdbook-linkcheckas dependencies for the rust-lang/rust build. These are used to build and check links in therustc-guiderepo.mdbookto build The Book and other things, but it's not clear to me how we make sure they are installed... (Perhaps @kennytm has ideas?)./x.py test src/doc/rustc-guidecommand1. Create a new
struct RustcGuideinsrc/bootstrap/test.rs.2.
impl Step for RustcGuideto runmdbook buildinsrc/doc/rustc-guide- Make sure that this test is not part of the standard build process or it will block PRs on the rust-lang/rust repo. IIUC, this can be done in the implementation of
should_runandmake_runinStep(see the documentation insrc/bootstrap/builder.rs3. Update
Builder::get_step_descriptions4. You may or may not need to do other stuff to wire things together... not sure. In the end, you should be able to do
./x.py test src/doc/rustc-guideto run the book build and linkchecker on the guide.rustc-guide, as done here: https://github.com/rust-lang/rust/pull/59038/filesMAINTAINERSsection. (@nikomatsakis do you want to be added too?)Feel free to ping me on this thread if you need help :)