Add a "fail" after a while(true) loop in two places

(in preparation for changing the "function may not return" warning
to an error)
This commit is contained in:
Tim Chevalier 2011-05-20 14:17:59 -07:00 committed by Graydon Hoare
parent a08a376d6e
commit 551fb13689

View file

@ -521,7 +521,7 @@ fn lookup_in_scope(&env e, list[scope] sc, &span sp, &ident id, namespace ns)
}
}
}
fail;
e.sess.bug("reached unreachable code in lookup_in_scope"); // sigh
}
fn lookup_in_ty_params(&ident id, &vec[ast::ty_param] ty_params)
@ -757,7 +757,7 @@ fn lookup_in_local_mod(&env e, def_id defid, &ident id, namespace ns,
}
}
}
fail;
e.sess.bug("reached unreachable code in lookup_in_regular_mod"); // sigh
}
fn lookup_in_mie(&env e, &mod_index_entry mie, namespace ns)