Replace most invocations of fail keyword with die! macro

This commit is contained in:
Nick Desaulniers 2013-01-31 17:51:01 -08:00 committed by Brian Anderson
parent 2db3175c76
commit aee7929469
331 changed files with 914 additions and 908 deletions

View file

@ -356,7 +356,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 _|_)
fail; // ("asking for " + filename + " which we don't know about");
die!(); // ("asking for " + filename + " which we don't know about");
}
}
@ -376,8 +376,8 @@ priv impl CodeMap {
}
}
if (a >= len) {
fail fmt!("position %u does not resolve to a source location",
pos.to_uint())
die!(fmt!("position %u does not resolve to a source location",
pos.to_uint()))
}
return a;