mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add --cap-lints warn to rustdoc script
Use --document-private-items instead of manually specifying passes as this is deprecated. Closes #21179
This commit is contained in:
parent
025ba5cbe3
commit
045f8bcf30
1 changed files with 6 additions and 3 deletions
|
@ -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 "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue