Skip to content

Commit a8535ce

Browse files
committed
std: Don't build docs for misc facade crates
Retain the same behavior as stable. Closes #38319
1 parent 7f2d2af commit a8535ce

File tree

10 files changed

+11
-1
lines changed

10 files changed

+11
-1
lines changed

src/bootstrap/doc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ pub fn std(build: &Build, stage: u32, target: &str) {
151151
let mut cargo = build.cargo(&compiler, Mode::Libstd, target, "doc");
152152
cargo.arg("--manifest-path")
153153
.arg(build.src.join("src/rustc/std_shim/Cargo.toml"))
154-
.arg("--features").arg(build.std_features());
154+
.arg("--features").arg(build.std_features())
155+
.arg("-p").arg("std");
155156
build.run(&mut cargo);
156157
cp_r(&out_dir, &out)
157158
}

src/liballoc_jemalloc/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ links = "jemalloc"
99
name = "alloc_jemalloc"
1010
path = "lib.rs"
1111
test = false
12+
doc = false
1213

1314
[dependencies]
1415
core = { path = "../libcore" }

src/liballoc_system/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version = "0.0.0"
77
name = "alloc_system"
88
path = "lib.rs"
99
test = false
10+
doc = false
1011

1112
[dependencies]
1213
core = { path = "../libcore" }

src/libcompiler_builtins/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "compiler_builtins"
99
path = "lib.rs"
1010
test = false
1111
bench = false
12+
doc = false
1213

1314
[dependencies]
1415
core = { path = "../libcore" }

src/libpanic_abort/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version = "0.0.0"
77
path = "lib.rs"
88
test = false
99
bench = false
10+
doc = false
1011

1112
[dependencies]
1213
core = { path = "../libcore" }

src/libpanic_unwind/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version = "0.0.0"
77
path = "lib.rs"
88
test = false
99
bench = false
10+
doc = false
1011

1112
[dependencies]
1213
alloc = { path = "../liballoc" }

src/librand/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.0.0"
66
[lib]
77
name = "rand"
88
path = "lib.rs"
9+
doc = false
910

1011
[dependencies]
1112
core = { path = "../libcore" }

src/libunwind/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "unwind"
99
path = "lib.rs"
1010
test = false
1111
bench = false
12+
doc = false
1213

1314
[dependencies]
1415
core = { path = "../libcore" }

src/rustc/libc_shim/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ name = "libc"
1717
path = "../../liblibc/src/lib.rs"
1818
test = false
1919
bench = false
20+
doc = false
2021

2122
[dependencies]
2223
core = { path = "../../libcore" }

src/rustc/std_shim/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ authors = ["The Rust Project Developers"]
2727
[lib]
2828
name = "std_shim"
2929
path = "lib.rs"
30+
doc = false
3031

3132
[dependencies]
3233
std = { path = "../../libstd" }

0 commit comments

Comments
 (0)