From a728b4c9b8936ec63f88a3d8a6e5622e43ee4fc5 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 8 Jan 2015 18:13:20 -0800 Subject: [PATCH] rustdoc: Stop adding #[deny(warnings)] to all tests Because we are warning about unstable APIs and there are many of these yet, this creates a high likelyhood doc tests will fail. This doesn't seem right as a blanket policy to me anyway, though certainly we want it in std. Probably more appropriate to add a rustdoc option. --- src/librustdoc/test.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index 8e0f4b2d44364..38ce738954665 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -215,7 +215,6 @@ pub fn maketest(s: &str, cratename: Option<&str>, lints: bool, dont_insert_main: let mut prog = String::new(); if lints { prog.push_str(r" -#![deny(warnings)] #![allow(unused_variables, unused_assignments, unused_mut, unused_attributes, dead_code)] "); }