deny overflow literals
This commit is contained in:
parent
2224a42c35
commit
4516ba7004
1 changed files with 3 additions and 1 deletions
|
|
@ -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! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue