fix a false negative on needless_return

This commit is contained in:
Takayuki 2021-04-12 21:36:49 +09:00
parent db6ea84f87
commit 53260df2fa

View File

@ -223,6 +223,7 @@ fn check_final_expr<'tcx>(
}, },
_ => (), _ => (),
}, },
ExprKind::DropTemps(expr) => check_final_expr(cx, expr, None, RetReplacement::Empty),
_ => (), _ => (),
} }
} }