Merge pull request #1544 from bood/master

Add lint for unnecessary casts (cast to same type)
This commit is contained in:
Oliver Schneider
2017-02-21 09:16:07 +01:00
committed by GitHub
6 changed files with 75 additions and 1 deletions

View File

@@ -497,6 +497,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
types::LINKEDLIST,
types::TYPE_COMPLEXITY,
types::UNIT_CMP,
types::UNNECESSARY_CAST,
unicode::ZERO_WIDTH_SPACE,
unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME,
unused_io_amount::UNUSED_IO_AMOUNT,