mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
parent
eb741e895f
commit
ebbcf9f458
5 changed files with 21 additions and 11 deletions
|
@ -83,7 +83,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
if let Expr::Block { statements, tail, .. } = body_expr {
|
||||
if let Some(t) = tail {
|
||||
self.validate_results_in_tail_expr(body.body_expr, *t, db);
|
||||
} else if let Some(Statement::Expr(id)) = statements.last() {
|
||||
} else if let Some(Statement::Expr { expr: id, .. }) = statements.last() {
|
||||
self.validate_missing_tail_expr(body.body_expr, *id, db);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue