Rollup merge of #143660 - cuviper:lib-doc-false, r=tgross35

Disable docs for `compiler-builtins` and `sysroot`

Bootstrap already had a manual doc filter for the `sysroot` crate, but
other library crates keep themselves out of the public docs by setting
`[lib] doc = false` in their manifest. This seems like a better solution
to hide `compiler-builtins` docs, and removes the `sysroot` hack too.

Fixes rust-lang/rust#143215 (after backport)
```@rustbot``` label beta-nominated
This commit is contained in:
Matthias Krüger 2025-07-10 20:28:50 +02:00 committed by GitHub
commit 6c4502d97d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -19,6 +19,8 @@ links = "compiler-rt"
bench = false
doctest = false
test = false
# make sure this crate isn't included in public standard library docs
doc = false
[dependencies]
core = { path = "../../core", optional = true }

View file

@ -5,6 +5,10 @@ name = "sysroot"
version = "0.0.0"
edition = "2024"
[lib]
# make sure this crate isn't included in public standard library docs
doc = false
# this is a dummy crate to ensure that all required crates appear in the sysroot
[dependencies]
proc_macro = { path = "../proc_macro", public = true }

View file

@ -743,10 +743,6 @@ fn doc_std(
}
for krate in requested_crates {
if krate == "sysroot" {
// The sysroot crate is an implementation detail, don't include it in public docs.
continue;
}
cargo.arg("-p").arg(krate);
}