Mention the false positive

This commit is contained in:
Zaki Manian 2017-09-03 14:01:29 -07:00
parent 44f694d0a1
commit 0d9f56674d

View file

@ -134,6 +134,8 @@ fn is_unit_expr(expr: &Expr) -> Option<Span> {
fn check_last_stmt_in_block(block: &Block) -> bool {
let final_stmt = &block.stmts[block.stmts.len() - 1];
//Made a choice here to risk false positives on divergent macro invocations like `panic!()`
match final_stmt.node {
StmtKind::Expr(_) => false,
StmtKind::Semi(ref expr) => match expr.node {