mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 14:07:04 +00:00
Mention the false positive
This commit is contained in:
parent
44f694d0a1
commit
0d9f56674d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user