Make unused lint ignore unused !
This commit is contained in:
parent
f31d9757f8
commit
082915290d
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ impl LateLintPass for UnusedResults {
|
|||
let t = cx.tcx.expr_ty(&expr);
|
||||
let warned = match t.sty {
|
||||
ty::TyTuple(ref tys) if tys.is_empty() => return,
|
||||
ty::TyEmpty => return,
|
||||
ty::TyBool => return,
|
||||
ty::TyStruct(def, _) |
|
||||
ty::TyEnum(def, _) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue