Add lint for unnecessary casts (cast to same type)

This commit is contained in:
Bood Qian
2017-02-15 22:20:20 +08:00
parent c76517d6c4
commit afce85e96d
6 changed files with 71 additions and 2 deletions

View File

@@ -488,6 +488,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
transmute::WRONG_TRANSMUTE,
types::ABSURD_EXTREME_COMPARISONS,
types::BOX_VEC,
types::CAST_UNNECESSARY,
types::CHAR_LIT_AS_U8,
types::LET_UNIT_VALUE,
types::LINKEDLIST,