Remove die!, raplace invocations with fail! Issue #4524 pt 3
This commit is contained in:
parent
c51ecc3223
commit
4445b38df2
363 changed files with 910 additions and 906 deletions
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue