mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
Bugfix.
This commit is contained in:
parent
bcdf57e220
commit
7624736961
@ -600,7 +600,7 @@ fn never_loop_expr(expr: &Expr, main_loop_id: &NodeId) -> NeverLoopResult {
|
|||||||
ExprMatch(ref e, ref arms, _) => {
|
ExprMatch(ref e, ref arms, _) => {
|
||||||
let e = never_loop_expr(e, main_loop_id);
|
let e = never_loop_expr(e, main_loop_id);
|
||||||
if arms.is_empty() {
|
if arms.is_empty() {
|
||||||
NeverLoopResult::Otherwise
|
e
|
||||||
} else {
|
} else {
|
||||||
let arms = never_loop_expr_branch(&mut arms.iter().map(|a| &*a.body), main_loop_id);
|
let arms = never_loop_expr_branch(&mut arms.iter().map(|a| &*a.body), main_loop_id);
|
||||||
combine_seq(e, arms)
|
combine_seq(e, arms)
|
||||||
|
Loading…
Reference in New Issue
Block a user