Remove die!, raplace invocations with fail! Issue #4524 pt 3

This commit is contained in:
Nick Desaulniers
2013-02-11 19:26:38 -08:00
committed by Brian Anderson
parent c51ecc3223
commit 4445b38df2
363 changed files with 910 additions and 906 deletions

View File

@@ -44,7 +44,7 @@ pub pure fn stmt_id(s: stmt) -> node_id {
stmt_decl(_, id) => id,
stmt_expr(_, id) => id,
stmt_semi(_, id) => id,
stmt_mac(*) => die!(~"attempted to analyze unexpanded stmt")
stmt_mac(*) => fail!(~"attempted to analyze unexpanded stmt")
}
}
@@ -53,7 +53,7 @@ pub fn variant_def_ids(d: def) -> {enm: def_id, var: def_id} {
def_variant(enum_id, var_id) => {
return {enm: enum_id, var: var_id}
}
_ => die!(~"non-variant in variant_def_ids")
_ => fail!(~"non-variant in variant_def_ids")
}
}
@@ -71,7 +71,7 @@ pub pure fn def_id_of_def(d: def) -> def_id {
local_def(id)
}
def_prim_ty(_) => die!()
def_prim_ty(_) => fail!()
}
}