servo/etc/rustdoc-with-private
Pyfisch 045f8bcf30 Add --cap-lints warn to rustdoc script
Use --document-private-items instead of
manually specifying passes as this is deprecated.

Closes #21179
2018-08-05 12:21:25 +02:00

7 lines
300 B
Bash
Executable file

#!/bin/sh
# 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.
rustdoc -Z "unstable-options" --cap-lints warn --document-private-items "$@"