Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewok
Move rustc-guide submodule to rustc-dev-guide r? @pietroalbini
This commit is contained in:
commit
853c4774e2
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -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
|
||||
|
@ -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",
|
||||
|
@ -1532,7 +1532,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<'_>) {
|
||||
@ -1540,14 +1540,14 @@ impl Step for RustcGuide {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ static STABLE_TOOLS: &[(&str, &str)] = &[
|
||||
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) {
|
||||
|
@ -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 \
|
||||
|
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
|
@ -40,7 +40,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 = {
|
||||
@ -54,7 +54,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',
|
||||
}
|
||||
|
||||
|
||||
@ -202,7 +202,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:
|
||||
|
Loading…
Reference in New Issue
Block a user