Lint for matching option as ref

This commit is contained in:
Wilco Kusee
2017-12-19 23:22:16 +01:00
parent cf58e1c672
commit 919601bc51
4 changed files with 110 additions and 3 deletions

View File

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