Add lint for unused lifetimes (fixes #459)

This commit is contained in:
Manish Goregaokar
2015-12-07 03:06:22 +05:30
parent c4e9982dd7
commit c7b87a06d2
5 changed files with 80 additions and 5 deletions

View File

@@ -154,6 +154,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
len_zero::LEN_WITHOUT_IS_EMPTY,
len_zero::LEN_ZERO,
lifetimes::NEEDLESS_LIFETIMES,
lifetimes::UNUSED_LIFETIMES,
loops::EMPTY_LOOP,
loops::EXPLICIT_COUNTER_LOOP,
loops::EXPLICIT_ITER_LOOP,