Closed
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
mdbook
andmdbook-linkcheck
as dependencies for the rust-lang/rust build. These are used to build and check links in therustc-guide
repo.- TBH, I don't know how best to do this. We already use
mdbook
to 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-guide
command
1. Create a newstruct RustcGuide
insrc/bootstrap/test.rs
.
2.impl Step for RustcGuide
to runmdbook build
insrc/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_run
andmake_run
inStep
(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-guide
to 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
MAINTAINERS
section. (@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 :)