Remove die!, raplace invocations with fail! Issue #4524 pt 3
This commit is contained in:
committed by
Brian Anderson
parent
c51ecc3223
commit
4445b38df2
@@ -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()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user