strip synstructure consts from compiler docs

This commit is contained in:
Andy Russell 2019-05-16 14:32:28 -04:00
parent 1962adea6a
commit c95be3d033
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
3 changed files with 6 additions and 6 deletions

View file

@ -728,7 +728,7 @@ impl Step for Rustc {
// Build cargo command.
let mut cargo = builder.cargo(compiler, Mode::Rustc, target, "doc");
cargo.env("RUSTDOCFLAGS", "--document-private-items");
cargo.env("RUSTDOCFLAGS", "--document-private-items --passes strip-hidden");
compile::rustc_cargo(builder, &mut cargo);
// Only include compiler crates, no dependencies of those, such as `libc`.