Skip to content

Support a rustup-toolchain-install-master contribution workflow for rustdoc #66581

@Manishearth

Description

@Manishearth

Currently to hack on rustdoc you need to build all of rustc, which takes forever and hinders contribution.

It might be better to do what clippy does: use rustup-toolchain-install-master

Currently this works on rustdoc with the following steps:

# setup
cargo install rustup-toolchain-install-master
rustup-toolchain-install-master -n master -c rustc-dev -f

# remove workspace file so that we don't mess with rustbuild
rm Cargo.toml

cd src/tools/rustdoc
cargo +master build
./target/debug/rustdoc

cc @GuillaumeGomez @QuietMisdreavus @Mark-Simulacrum

It may also be worth making this kind of workflow a more first-class part of x.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions