Replace most invocations of fail keyword with die! macro
This commit is contained in:
parent
2db3175c76
commit
aee7929469
331 changed files with 914 additions and 908 deletions
|
@ -125,7 +125,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),
|
||||
_ => fail
|
||||
_ => die!()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -362,7 +362,7 @@ pub fn parse(sess: parse_sess,
|
|||
fmt!("%s ('%s')", *sess.interner.get(name),
|
||||
*sess.interner.get(bind))
|
||||
}
|
||||
_ => fail
|
||||
_ => die!()
|
||||
} }), ~" or ");
|
||||
return error(sp, fmt!(
|
||||
"Local ambiguity: multiple parsing options: \
|
||||
|
@ -387,7 +387,7 @@ pub fn parse(sess: parse_sess,
|
|||
parse_nt(rust_parser, *sess.interner.get(name))));
|
||||
ei.idx += 1u;
|
||||
}
|
||||
_ => fail
|
||||
_ => die!()
|
||||
}
|
||||
cur_eis.push(move ei);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue