mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
fix a false negative on needless_return
This commit is contained in:
@@ -223,6 +223,7 @@ fn check_final_expr<'tcx>(
|
||||
},
|
||||
_ => (),
|
||||
},
|
||||
ExprKind::DropTemps(expr) => check_final_expr(cx, expr, None, RetReplacement::Empty),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user