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:
parent
a08a376d6e
commit
551fb13689
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue