diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-09-23 22:58:47 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-09-23 22:58:47 +0800 |
| commit | 4516ba7004bfb06468a56636d2e170aaaa82c27a (patch) | |
| tree | 39905210eead0356075ab97710037da694f8cdcd | |
| parent | 2224a42c353636db6ee53cc3f9b1a968e9d9c1f6 (diff) | |
| download | rust-4516ba7004bfb06468a56636d2e170aaaa82c27a.tar.gz rust-4516ba7004bfb06468a56636d2e170aaaa82c27a.zip | |
deny overflow literals
| -rw-r--r-- | src/librustc_lint/types.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_lint/types.rs b/src/librustc_lint/types.rs index 2bec9203e9e..01d4d0f8cdb 100644 --- a/src/librustc_lint/types.rs +++ b/src/librustc_lint/types.rs @@ -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! { |
