lint: immutable only vars in while condition

This commit is contained in:
Karim Snj
2018-02-25 18:25:31 +01:00
parent d5e233a720
commit 5c1be4a4ba
5 changed files with 181 additions and 2 deletions

View File

@@ -521,6 +521,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
loops::UNUSED_COLLECT,
loops::WHILE_LET_LOOP,
loops::WHILE_LET_ON_ITERATOR,
loops::WHILE_IMMUTABLE_CONDITION,
map_clone::MAP_CLONE,
matches::MATCH_AS_REF,
matches::MATCH_BOOL,