Make is_useful handle empty types properly
This commit is contained in:
parent
9ad20442e8
commit
bcdbe942e1
24 changed files with 246 additions and 85 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue