Enable the cast_lossless warning by default.

This commit is contained in:
Dan Gohman
2017-08-29 05:48:19 -07:00
parent 6bc7893b70
commit 1ea70116d3
6 changed files with 7 additions and 7 deletions

View File

@@ -358,7 +358,6 @@ 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,
@@ -530,6 +529,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
types::ABSURD_EXTREME_COMPARISONS,
types::BORROWED_BOX,
types::BOX_VEC,
types::CAST_LOSSLESS,
types::CHAR_LIT_AS_U8,
types::LET_UNIT_VALUE,
types::LINKEDLIST,