From dfbb94664915354eb512c66833ece422bd2b9214 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Wed, 20 Dec 2017 10:20:23 -0600 Subject: [PATCH] bootstrap: pass --deny-render-differences to rustdoc --- src/bootstrap/bin/rustdoc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs index 4e975adc972..62037590853 100644 --- a/src/bootstrap/bin/rustdoc.rs +++ b/src/bootstrap/bin/rustdoc.rs @@ -57,6 +57,10 @@ fn main() { // This "unstable-options" can be removed when `--crate-version` is stabilized cmd.arg("-Z").arg("unstable-options") .arg("--crate-version").arg(version); + + // While we can assume that `-Z unstable-options` is set, let's also force rustdoc to panic + // if pulldown rendering differences are found + cmd.arg("--deny-render-differences"); } std::process::exit(match cmd.status() {