Skip to content

Commit

Permalink
Auto merge of #21345 - pyfisch:rustdoc-lints, r=jdm
Browse files Browse the repository at this point in the history
Add --cap-lints warn to rustdoc script

Use --document-private-items instead of
manually specifying passes as this is deprecated.

Closes #21179

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21345)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Aug 8, 2018
2 parents ea86eb6 + 045f8bc commit 8a1c1fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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 "$@"

0 comments on commit 8a1c1fa

Please sign in to comment.