mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +02:00
17 lines
398 B
Bash
Executable File
17 lines
398 B
Bash
Executable File
#!/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 "$@"
|