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

@ -401,7 +401,7 @@ pub impl CodeMap {
for self.files.each |fm| { if fm.name == filename { return *fm; } }
//XXjdm the following triggers a mismatched type bug
// (or expected function, found _|_)
die!(); // ("asking for " + filename + " which we don't know about");
fail!(); // ("asking for " + filename + " which we don't know about");
}
}
@ -421,7 +421,7 @@ priv impl CodeMap {
}
}
if (a >= len) {
die!(fmt!("position %u does not resolve to a source location",
fail!(fmt!("position %u does not resolve to a source location",
pos.to_uint()))
}