We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f694d commit 0d9f566Copy full SHA for 0d9f566
clippy_lints/src/is_unit_expr.rs
@@ -134,6 +134,8 @@ fn is_unit_expr(expr: &Expr) -> Option<Span> {
134
fn check_last_stmt_in_block(block: &Block) -> bool {
135
let final_stmt = &block.stmts[block.stmts.len() - 1];
136
137
+
138
+ //Made a choice here to risk false positives on divergent macro invocations like `panic!()`
139
match final_stmt.node {
140
StmtKind::Expr(_) => false,
141
StmtKind::Semi(ref expr) => match expr.node {
0 commit comments