- 
                Notifications
    
You must be signed in to change notification settings  - Fork 13.9k
 
Closed
Labels
E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.
Description
(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
-  Add 
mdbookandmdbook-linkcheckas dependencies for the rust-lang/rust build. These are used to build and check links in therustc-guiderepo.- TBH, I don't know how best to do this. We already use 
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?) 
 - TBH, I don't know how best to do this. We already use 
 -  Add an 
./x.py test src/doc/rustc-guidecommand
1. Create a newstruct 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 ofshould_runandmake_runinStep(see the documentation insrc/bootstrap/builder.rs
3. UpdateBuilder::get_step_descriptions
4. 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. -  Update the toolstate config to add 
rustc-guide, as done here: https://github.com/rust-lang/rust/pull/59038/files- Add me (@mark-i-m) under the 
MAINTAINERSsection. (@nikomatsakis do you want to be added too?) 
 - Add me (@mark-i-m) under the 
 
Feel free to ping me on this thread if you need help :)
Metadata
Metadata
Assignees
Labels
E-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.