Clean up rustdoc run

1. The options specified in `rustdoc-with-private` are essentially the
   default now so we can remove this script.
2. `./mach browse-doc` is redundant with `./mach doc --open` which uses
   the underlying cargo functionality to browse the documentation.

Fixes #29888.
This commit is contained in:
Martin Robinson 2023-06-20 12:37:54 +02:00
parent 836ae5fa48
commit 4d7f250159
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8
4 changed files with 5 additions and 41 deletions

View file

@ -1,8 +0,0 @@
<style>
.docblock table {
border-collapse: collapse;
}
.docblock table th, .docblock table td {
border: 1px solid #888;
}
</style>

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
# Emit documentation for private items so it is easier to look
# up internal definitions.
#
# Deny "deny warnings" to ensure documenting the crates
# succeeds even if new warnings are introduced to the compiler.
if [[ "$*" == *--document-private-items* ]]
then
ARGS=""
else
ARGS="--document-private-items"
fi
rustdoc -Z "unstable-options" --cap-lints warn $ARGS "$@"