deny overflow literals

This commit is contained in:
csmoe 2018-09-23 22:58:47 +08:00
parent 2224a42c35
commit 4516ba7004

View file

@ -24,6 +24,7 @@ use std::{i8, i16, i32, i64, u8, u16, u32, u64, f32, f64};
use syntax::{ast, attr};
use syntax::errors::Applicability;
use rustc_target::spec::abi::Abi;
use syntax::edition::Edition;
use syntax_pos::Span;
use syntax::source_map;
@ -38,7 +39,8 @@ declare_lint! {
declare_lint! {
OVERFLOWING_LITERALS,
Warn,
"literal out of range for its type"
"literal out of range for its type",
Edition::Edition2018 => Deny
}
declare_lint! {