mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
16 lines
390 B
Bash
Executable file
16 lines
390 B
Bash
Executable file
#!/bin/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 "$@"
|