Auto merge of #105794 - ChrisDenton:internal-doc, r=jyn514

Add CI test for documentation of hidden items in std

Fixes #87844

r? `@jyn514`
This commit is contained in:
bors 2022-12-17 06:27:30 +00:00
commit fde3000299
2 changed files with 2 additions and 2 deletions

View File

@ -405,7 +405,7 @@ impl<'a> Arguments<'a> {
/// 1. The `pieces` slice must be at least as long as `fmt`. /// 1. The `pieces` slice must be at least as long as `fmt`.
/// 2. Every [`rt::v1::Argument::position`] value within `fmt` must be a /// 2. Every [`rt::v1::Argument::position`] value within `fmt` must be a
/// valid index of `args`. /// valid index of `args`.
/// 3. Every [`Count::Param`] within `fmt` must contain a valid index of /// 3. Every [`rt::v1::Count::Param`] within `fmt` must contain a valid index of
/// `args`. /// `args`.
#[doc(hidden)] #[doc(hidden)]
#[inline] #[inline]

View File

@ -46,7 +46,7 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
python3 ../x.py test --stage 2 src/tools/tidy && \ python3 ../x.py test --stage 2 src/tools/tidy && \
python3 ../x.py test --stage 0 core alloc std test proc_macro && \ python3 ../x.py test --stage 0 core alloc std test proc_macro && \
# Build both public and internal documentation. # Build both public and internal documentation.
RUSTDOCFLAGS="--document-private-items" python3 ../x.py doc --stage 0 library/test && \ RUSTDOCFLAGS=\"--document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 library/test && \
/scripts/validate-toolstate.sh && \ /scripts/validate-toolstate.sh && \
/scripts/validate-error-codes.sh && \ /scripts/validate-error-codes.sh && \
reuse lint && \ reuse lint && \