Moved allow(unknown_lints) to crate level.

This commit is contained in:
R.Chavignat 2015-08-20 14:25:08 +02:00
parent 1846581baa
commit 93d9249f76
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ impl Constant {
}
/// convert this constant to a f64, if possible
#[allow(unknown_lints,cast_precision_loss)]
#[allow(cast_precision_loss)]
pub fn as_float(&self) -> Option<f64> {
match *self {
ConstantByte(b) => Some(b as f64),

View File

@ -1,6 +1,7 @@
#![feature(plugin_registrar, box_syntax)]
#![feature(rustc_private, core, collections)]
#![feature(str_split_at)]
#![allow(unknown_lints)]
#[macro_use]
extern crate syntax;