From 045f8bcf30120e3d1907d74fec8af062856c9c9a Mon Sep 17 00:00:00 2001 From: Pyfisch Date: Sun, 5 Aug 2018 12:21:25 +0200 Subject: [PATCH] Add --cap-lints warn to rustdoc script Use --document-private-items instead of manually specifying passes as this is deprecated. Closes #21179 --- etc/rustdoc-with-private | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/rustdoc-with-private b/etc/rustdoc-with-private index 097c237c562..cac6ef41d62 100755 --- a/etc/rustdoc-with-private +++ b/etc/rustdoc-with-private @@ -1,4 +1,7 @@ #!/bin/sh -# Skip the strip-private and strip-hidden rustdoc passes -# https://github.com/rust-lang/rust/issues/15347 -rustdoc --no-defaults --passes collapse-docs --passes unindent-comments --passes strip-priv-imports "$@" +# 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 "$@"