Make is_useful handle empty types properly

This commit is contained in:
Andrew Cann
2016-11-29 15:10:26 +08:00
parent 9ad20442e8
commit bcdbe942e1
24 changed files with 246 additions and 85 deletions

View File

@@ -165,6 +165,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
DEAD_CODE,
UNUSED_MUT,
UNREACHABLE_CODE,
UNREACHABLE_PATTERNS,
UNUSED_MUST_USE,
UNUSED_UNSAFE,
PATH_STATEMENTS,