new lint: loop-match-break, which could be while-let (fixes #118)

This commit is contained in:
Georg Brandl 2015-08-29 11:41:06 +02:00
parent 92563a9970
commit b72ef5a173
6 changed files with 129 additions and 15 deletions

View file

@ -96,6 +96,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
loops::EXPLICIT_ITER_LOOP,
loops::ITER_NEXT_LOOP,
loops::NEEDLESS_RANGE_LOOP,
loops::WHILE_LET_LOOP,
matches::MATCH_REF_PATS,
matches::SINGLE_MATCH,
methods::OPTION_UNWRAP_USED,