Skip to content

Commit 4516ba7

Browse files
committed
deny overflow literals
1 parent 2224a42 commit 4516ba7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_lint/types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use std::{i8, i16, i32, i64, u8, u16, u32, u64, f32, f64};
2424
use syntax::{ast, attr};
2525
use syntax::errors::Applicability;
2626
use rustc_target::spec::abi::Abi;
27+
use syntax::edition::Edition;
2728
use syntax_pos::Span;
2829
use syntax::source_map;
2930

@@ -38,7 +39,8 @@ declare_lint! {
3839
declare_lint! {
3940
OVERFLOWING_LITERALS,
4041
Warn,
41-
"literal out of range for its type"
42+
"literal out of range for its type",
43+
Edition::Edition2018 => Deny
4244
}
4345

4446
declare_lint! {

0 commit comments

Comments
 (0)