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

@ -70,6 +70,12 @@ declare_lint! {
"detects unreachable code paths"
}
declare_lint! {
pub UNREACHABLE_PATTERNS,
Warn,
"detects unreachable patterns"
}
declare_lint! {
pub WARNINGS,
Warn,
@ -239,6 +245,7 @@ impl LintPass for HardwiredLints {
UNUSED_ASSIGNMENTS,
DEAD_CODE,
UNREACHABLE_CODE,
UNREACHABLE_PATTERNS,
WARNINGS,
UNUSED_FEATURES,
STABLE_FEATURES,