mirror of https://github.com/rust-lang/rust.git
Moved allow(unknown_lints) to crate level.
This commit is contained in:
parent
1846581baa
commit
93d9249f76
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue