gecko-dev/servo/etc/rustdoc-with-private
Simon Sapin d6492e5b27 servo: Merge #9894 - Use rustdoc’s new --passes strip-priv-imports flag (from servo:strip-priv-imports); r=Ms2ger
https://github.com/rust-lang/rust/pull/32055

This will make e.g. http://doc.servo.org/servo/index.html#reexports stop listing `extern crate` and `use` statements that don’t have `pub`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1453f438256afe92b0f79980c984824aac4afeae
2016-03-08 09:17:29 +05:01

5 lines
221 B
Bash
Executable File

#!/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 "$@"