Move rustc-guide submodule to rustc-dev-guide
This commit is contained in:
parent
c79f5f0647
commit
4387a8b96e
8 changed files with 13 additions and 13 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -31,9 +31,9 @@
|
||||||
[submodule "src/stdarch"]
|
[submodule "src/stdarch"]
|
||||||
path = src/stdarch
|
path = src/stdarch
|
||||||
url = https://github.com/rust-lang/stdarch.git
|
url = https://github.com/rust-lang/stdarch.git
|
||||||
[submodule "src/doc/rustc-guide"]
|
[submodule "src/doc/rustc-dev-guide"]
|
||||||
path = src/doc/rustc-guide
|
path = src/doc/rustc-dev-guide
|
||||||
url = https://github.com/rust-lang/rustc-guide.git
|
url = https://github.com/rust-lang/rustc-dev-guide.git
|
||||||
[submodule "src/doc/edition-guide"]
|
[submodule "src/doc/edition-guide"]
|
||||||
path = src/doc/edition-guide
|
path = src/doc/edition-guide
|
||||||
url = https://github.com/rust-lang/edition-guide.git
|
url = https://github.com/rust-lang/edition-guide.git
|
||||||
|
|
|
@ -20,7 +20,7 @@ ignore = [
|
||||||
"src/doc/nomicon",
|
"src/doc/nomicon",
|
||||||
"src/doc/reference",
|
"src/doc/reference",
|
||||||
"src/doc/rust-by-example",
|
"src/doc/rust-by-example",
|
||||||
"src/doc/rustc-guide",
|
"src/doc/rustc-dev-guide",
|
||||||
"src/llvm-project",
|
"src/llvm-project",
|
||||||
"src/stdarch",
|
"src/stdarch",
|
||||||
"src/tools/cargo",
|
"src/tools/cargo",
|
||||||
|
|
|
@ -1493,7 +1493,7 @@ impl Step for RustcGuide {
|
||||||
const ONLY_HOSTS: bool = true;
|
const ONLY_HOSTS: bool = true;
|
||||||
|
|
||||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||||
run.path("src/doc/rustc-guide")
|
run.path("src/doc/rustc-dev-guide")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn make_run(run: RunConfig<'_>) {
|
fn make_run(run: RunConfig<'_>) {
|
||||||
|
@ -1501,14 +1501,14 @@ impl Step for RustcGuide {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run(self, builder: &Builder<'_>) {
|
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 mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
|
||||||
let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) {
|
let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) {
|
||||||
ToolState::TestPass
|
ToolState::TestPass
|
||||||
} else {
|
} else {
|
||||||
ToolState::TestFail
|
ToolState::TestFail
|
||||||
};
|
};
|
||||||
builder.save_toolstate("rustc-guide", toolstate);
|
builder.save_toolstate("rustc-dev-guide", toolstate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ static STABLE_TOOLS: &[(&str, &str)] = &[
|
||||||
static NIGHTLY_TOOLS: &[(&str, &str)] = &[
|
static NIGHTLY_TOOLS: &[(&str, &str)] = &[
|
||||||
("miri", "src/tools/miri"),
|
("miri", "src/tools/miri"),
|
||||||
("embedded-book", "src/doc/embedded-book"),
|
("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) {
|
fn print_error(tool: &str, submodule: &str) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ python2.7 "$X_PY" test --no-fail-fast \
|
||||||
src/doc/rust-by-example \
|
src/doc/rust-by-example \
|
||||||
src/doc/embedded-book \
|
src/doc/embedded-book \
|
||||||
src/doc/edition-guide \
|
src/doc/edition-guide \
|
||||||
src/doc/rustc-guide \
|
src/doc/rustc-dev-guide \
|
||||||
src/tools/clippy \
|
src/tools/clippy \
|
||||||
src/tools/rls \
|
src/tools/rls \
|
||||||
src/tools/rustfmt \
|
src/tools/rustfmt \
|
||||||
|
|
1
src/doc/rustc-dev-guide
Submodule
1
src/doc/rustc-dev-guide
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 66be765404efb82c6bc2735473cbd3472f777dc0
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 5bd60bc51efaec04e69e2e18b59678e2af066433
|
|
|
@ -41,7 +41,7 @@ MAINTAINERS = {
|
||||||
'ryankurte', 'thejpster', 'therealprof',
|
'ryankurte', 'thejpster', 'therealprof',
|
||||||
},
|
},
|
||||||
'edition-guide': {'ehuss', 'Centril', 'steveklabnik'},
|
'edition-guide': {'ehuss', 'Centril', 'steveklabnik'},
|
||||||
'rustc-guide': {'mark-i-m', 'spastorino', 'amanjeev', 'JohnTitor'},
|
'rustc-dev-guide': {'mark-i-m', 'spastorino', 'amanjeev', 'JohnTitor'},
|
||||||
}
|
}
|
||||||
|
|
||||||
REPOS = {
|
REPOS = {
|
||||||
|
@ -55,7 +55,7 @@ REPOS = {
|
||||||
'rust-by-example': 'https://github.com/rust-lang/rust-by-example',
|
'rust-by-example': 'https://github.com/rust-lang/rust-by-example',
|
||||||
'embedded-book': 'https://github.com/rust-embedded/book',
|
'embedded-book': 'https://github.com/rust-embedded/book',
|
||||||
'edition-guide': 'https://github.com/rust-lang/edition-guide',
|
'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]
|
old = status[os]
|
||||||
new = s.get(tool, old)
|
new = s.get(tool, old)
|
||||||
status[os] = new
|
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:
|
# comparing the strings, but they are ordered appropriately:
|
||||||
# "test-pass" > "test-fail" > "build-fail"
|
# "test-pass" > "test-fail" > "build-fail"
|
||||||
if new > old:
|
if new > old:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue