From 4387a8b96e4ae5b0c0450b284574d8307b4d5685 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 10 Mar 2020 17:22:25 -0300 Subject: [PATCH] Move rustc-guide submodule to rustc-dev-guide --- .gitmodules | 6 +++--- rustfmt.toml | 2 +- src/bootstrap/test.rs | 6 +++--- src/bootstrap/toolstate.rs | 2 +- src/ci/docker/x86_64-gnu-tools/checktools.sh | 2 +- src/doc/rustc-dev-guide | 1 + src/doc/rustc-guide | 1 - src/tools/publish_toolstate.py | 6 +++--- 8 files changed, 13 insertions(+), 13 deletions(-) create mode 160000 src/doc/rustc-dev-guide delete mode 160000 src/doc/rustc-guide diff --git a/.gitmodules b/.gitmodules index 003e50d0788..b2b580d08bc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,9 +31,9 @@ [submodule "src/stdarch"] path = src/stdarch url = https://github.com/rust-lang/stdarch.git -[submodule "src/doc/rustc-guide"] - path = src/doc/rustc-guide - url = https://github.com/rust-lang/rustc-guide.git +[submodule "src/doc/rustc-dev-guide"] + path = src/doc/rustc-dev-guide + url = https://github.com/rust-lang/rustc-dev-guide.git [submodule "src/doc/edition-guide"] path = src/doc/edition-guide url = https://github.com/rust-lang/edition-guide.git diff --git a/rustfmt.toml b/rustfmt.toml index 8f4c901fb97..9b2c0820036 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -20,7 +20,7 @@ ignore = [ "src/doc/nomicon", "src/doc/reference", "src/doc/rust-by-example", - "src/doc/rustc-guide", + "src/doc/rustc-dev-guide", "src/llvm-project", "src/stdarch", "src/tools/cargo", diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 1b9e9a88948..f041555c932 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1493,7 +1493,7 @@ impl Step for RustcGuide { const ONLY_HOSTS: bool = true; fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.path("src/doc/rustc-guide") + run.path("src/doc/rustc-dev-guide") } fn make_run(run: RunConfig<'_>) { @@ -1501,14 +1501,14 @@ fn make_run(run: RunConfig<'_>) { } fn run(self, builder: &Builder<'_>) { - let src = builder.src.join("src/doc/rustc-guide"); + let src = builder.src.join("src/doc/rustc-dev-guide"); let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook); let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) { ToolState::TestPass } else { ToolState::TestFail }; - builder.save_toolstate("rustc-guide", toolstate); + builder.save_toolstate("rustc-dev-guide", toolstate); } } diff --git a/src/bootstrap/toolstate.rs b/src/bootstrap/toolstate.rs index 7cffc472930..31ff01d5be6 100644 --- a/src/bootstrap/toolstate.rs +++ b/src/bootstrap/toolstate.rs @@ -89,7 +89,7 @@ fn days_since_beta_promotion() -> u64 { static NIGHTLY_TOOLS: &[(&str, &str)] = &[ ("miri", "src/tools/miri"), ("embedded-book", "src/doc/embedded-book"), - ("rustc-guide", "src/doc/rustc-guide"), + ("rustc-dev-guide", "src/doc/rustc-dev-guide"), ]; fn print_error(tool: &str, submodule: &str) { diff --git a/src/ci/docker/x86_64-gnu-tools/checktools.sh b/src/ci/docker/x86_64-gnu-tools/checktools.sh index e57fe227139..72325c7b948 100755 --- a/src/ci/docker/x86_64-gnu-tools/checktools.sh +++ b/src/ci/docker/x86_64-gnu-tools/checktools.sh @@ -14,7 +14,7 @@ python2.7 "$X_PY" test --no-fail-fast \ src/doc/rust-by-example \ src/doc/embedded-book \ src/doc/edition-guide \ - src/doc/rustc-guide \ + src/doc/rustc-dev-guide \ src/tools/clippy \ src/tools/rls \ src/tools/rustfmt \ diff --git a/src/doc/rustc-dev-guide b/src/doc/rustc-dev-guide new file mode 160000 index 00000000000..66be765404e --- /dev/null +++ b/src/doc/rustc-dev-guide @@ -0,0 +1 @@ +Subproject commit 66be765404efb82c6bc2735473cbd3472f777dc0 diff --git a/src/doc/rustc-guide b/src/doc/rustc-guide deleted file mode 160000 index 5bd60bc51ef..00000000000 --- a/src/doc/rustc-guide +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5bd60bc51efaec04e69e2e18b59678e2af066433 diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py index 5fbb986286a..79462a909c8 100755 --- a/src/tools/publish_toolstate.py +++ b/src/tools/publish_toolstate.py @@ -41,7 +41,7 @@ MAINTAINERS = { 'ryankurte', 'thejpster', 'therealprof', }, 'edition-guide': {'ehuss', 'Centril', 'steveklabnik'}, - 'rustc-guide': {'mark-i-m', 'spastorino', 'amanjeev', 'JohnTitor'}, + 'rustc-dev-guide': {'mark-i-m', 'spastorino', 'amanjeev', 'JohnTitor'}, } REPOS = { @@ -55,7 +55,7 @@ REPOS = { 'rust-by-example': 'https://github.com/rust-lang/rust-by-example', 'embedded-book': 'https://github.com/rust-embedded/book', 'edition-guide': 'https://github.com/rust-lang/edition-guide', - 'rustc-guide': 'https://github.com/rust-lang/rustc-guide', + 'rustc-dev-guide': 'https://github.com/rust-lang/rustc-dev-guide', } @@ -204,7 +204,7 @@ def update_latest( old = status[os] new = s.get(tool, old) status[os] = new - maintainers = ' '.join('@'+name for name in MAINTAINERS[tool]) + maintainers = ' '.join('@'+name for name in MAINTAINERS.get(tool, ()) # comparing the strings, but they are ordered appropriately: # "test-pass" > "test-fail" > "build-fail" if new > old: