1
Fork 0

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

@ -124,7 +124,7 @@ pub type matcher_pos = ~{
pub fn copy_up(&& mpu: matcher_pos_up) -> matcher_pos {
match &mpu {
&matcher_pos_up(Some(ref mp)) => copy (*mp),
_ => die!()
_ => fail!()
}
}
@ -361,7 +361,7 @@ pub fn parse(sess: parse_sess,
fmt!("%s ('%s')", *sess.interner.get(name),
*sess.interner.get(bind))
}
_ => die!()
_ => fail!()
} }), ~" or ");
return error(sp, fmt!(
"Local ambiguity: multiple parsing options: \
@ -386,7 +386,7 @@ pub fn parse(sess: parse_sess,
parse_nt(rust_parser, *sess.interner.get(name))));
ei.idx += 1u;
}
_ => die!()
_ => fail!()
}
cur_eis.push(move ei);