Skip to content

Commit 17ced83

Browse files
committed
Only make warnings fatal when testing.
That way, a deprecation warning won’t break dependants.
1 parent 1a2a44f commit 17ced83

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#![feature(plugin_registrar, quote, box_syntax)]
1414
#![feature(rustc_private, slice_patterns)]
15-
#![deny(warnings)]
15+
#![cfg_attr(test, deny(warnings))]
1616
#![allow(unused_imports)] // for quotes
1717

1818
extern crate syntax;

shared/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! the macros crate and the run-time library, in order to guarantee
1212
//! consistency.
1313
14-
#![deny(warnings)]
14+
#![cfg_attr(test, deny(warnings))]
1515

1616
#[macro_use] extern crate debug_unreachable;
1717
extern crate phf;

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![crate_name = "string_cache"]
1111
#![crate_type = "rlib"]
1212

13-
#![deny(warnings)]
13+
#![cfg_attr(test, deny(warnings))]
1414
#![cfg_attr(test, feature(test, filling_drop))]
1515
#![cfg_attr(bench, feature(rand))]
1616
#![cfg_attr(feature = "unstable", feature(unsafe_no_drop_flag, plugin))]

0 commit comments

Comments
 (0)