Add a lint for lossless casts.
This commit is contained in:
@@ -359,6 +359,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,
|
||||
|
||||
Reference in New Issue
Block a user