Merge pull request #1956 from sunfishcode/master

Add a lint for lossless casts.
This commit is contained in:
Oliver Schneider
2017-08-29 08:50:36 +02:00
committed by GitHub
8 changed files with 360 additions and 100 deletions

View File

@@ -358,6 +358,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
shadow::SHADOW_UNRELATED,
strings::STRING_ADD,
strings::STRING_ADD_ASSIGN,
types::CAST_LOSSLESS,
types::CAST_POSSIBLE_TRUNCATION,
types::CAST_POSSIBLE_WRAP,
types::CAST_PRECISION_LOSS,