aboutsummaryrefslogtreecommitdiffstats
path: root/etc/rustdoc-with-private
blob: 87985da1484e28af7adda11544d4e27be183a989 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 "$@"