From a8535ce9d1045eebf92a477e846b720a08513cd0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 28 Dec 2016 10:53:43 -0800 Subject: [PATCH] std: Don't build docs for misc facade crates Retain the same behavior as stable. Closes #38319 --- src/bootstrap/doc.rs | 3 ++- src/liballoc_jemalloc/Cargo.toml | 1 + src/liballoc_system/Cargo.toml | 1 + src/libcompiler_builtins/Cargo.toml | 1 + src/libpanic_abort/Cargo.toml | 1 + src/libpanic_unwind/Cargo.toml | 1 + src/librand/Cargo.toml | 1 + src/libunwind/Cargo.toml | 1 + src/rustc/libc_shim/Cargo.toml | 1 + src/rustc/std_shim/Cargo.toml | 1 + 10 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 4c4462bf1220d..d7af12e7f9731 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -151,7 +151,8 @@ pub fn std(build: &Build, stage: u32, target: &str) { let mut cargo = build.cargo(&compiler, Mode::Libstd, target, "doc"); cargo.arg("--manifest-path") .arg(build.src.join("src/rustc/std_shim/Cargo.toml")) - .arg("--features").arg(build.std_features()); + .arg("--features").arg(build.std_features()) + .arg("-p").arg("std"); build.run(&mut cargo); cp_r(&out_dir, &out) } diff --git a/src/liballoc_jemalloc/Cargo.toml b/src/liballoc_jemalloc/Cargo.toml index 25b3c8a3a0a83..01393be9949ae 100644 --- a/src/liballoc_jemalloc/Cargo.toml +++ b/src/liballoc_jemalloc/Cargo.toml @@ -9,6 +9,7 @@ links = "jemalloc" name = "alloc_jemalloc" path = "lib.rs" test = false +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/liballoc_system/Cargo.toml b/src/liballoc_system/Cargo.toml index 88e8e2d7adbc3..8e3c2c0b9cc66 100644 --- a/src/liballoc_system/Cargo.toml +++ b/src/liballoc_system/Cargo.toml @@ -7,6 +7,7 @@ version = "0.0.0" name = "alloc_system" path = "lib.rs" test = false +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/libcompiler_builtins/Cargo.toml b/src/libcompiler_builtins/Cargo.toml index 79570dc025219..1a549ae823ac5 100644 --- a/src/libcompiler_builtins/Cargo.toml +++ b/src/libcompiler_builtins/Cargo.toml @@ -9,6 +9,7 @@ name = "compiler_builtins" path = "lib.rs" test = false bench = false +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/libpanic_abort/Cargo.toml b/src/libpanic_abort/Cargo.toml index d90d2864813c9..e0eac41f49ec9 100644 --- a/src/libpanic_abort/Cargo.toml +++ b/src/libpanic_abort/Cargo.toml @@ -7,6 +7,7 @@ version = "0.0.0" path = "lib.rs" test = false bench = false +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/libpanic_unwind/Cargo.toml b/src/libpanic_unwind/Cargo.toml index 90c16fff6f1f1..a978ea16e9e74 100644 --- a/src/libpanic_unwind/Cargo.toml +++ b/src/libpanic_unwind/Cargo.toml @@ -7,6 +7,7 @@ version = "0.0.0" path = "lib.rs" test = false bench = false +doc = false [dependencies] alloc = { path = "../liballoc" } diff --git a/src/librand/Cargo.toml b/src/librand/Cargo.toml index 86b061db05413..eda5f217565de 100644 --- a/src/librand/Cargo.toml +++ b/src/librand/Cargo.toml @@ -6,6 +6,7 @@ version = "0.0.0" [lib] name = "rand" path = "lib.rs" +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/libunwind/Cargo.toml b/src/libunwind/Cargo.toml index 36f361b723894..fbd9789d2f52d 100644 --- a/src/libunwind/Cargo.toml +++ b/src/libunwind/Cargo.toml @@ -9,6 +9,7 @@ name = "unwind" path = "lib.rs" test = false bench = false +doc = false [dependencies] core = { path = "../libcore" } diff --git a/src/rustc/libc_shim/Cargo.toml b/src/rustc/libc_shim/Cargo.toml index e501766fbed15..39df3528be369 100644 --- a/src/rustc/libc_shim/Cargo.toml +++ b/src/rustc/libc_shim/Cargo.toml @@ -17,6 +17,7 @@ name = "libc" path = "../../liblibc/src/lib.rs" test = false bench = false +doc = false [dependencies] core = { path = "../../libcore" } diff --git a/src/rustc/std_shim/Cargo.toml b/src/rustc/std_shim/Cargo.toml index 18680dc4fd9a1..1fa9177243536 100644 --- a/src/rustc/std_shim/Cargo.toml +++ b/src/rustc/std_shim/Cargo.toml @@ -27,6 +27,7 @@ authors = ["The Rust Project Developers"] [lib] name = "std_shim" path = "lib.rs" +doc = false [dependencies] std = { path = "../../libstd" }