about summary refs log tree commit diff
path: root/src/libtime/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtime/lib.rs')
-rw-r--r--src/libtime/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs
index ee06c3f6caa..590d0bfdcab 100644
--- a/src/libtime/lib.rs
+++ b/src/libtime/lib.rs
@@ -1305,7 +1305,7 @@ mod tests {
             == Err(InvalidTime));
 
         match strptime("Fri Feb 13 15:31:30.01234 2009", format) {
-          Err(e) => fail!(e),
+          Err(e) => panic!(e),
           Ok(ref tm) => {
             assert!(tm.tm_sec == 30_i32);
             assert!(tm.tm_min == 31_i32);
@@ -1324,7 +1324,7 @@ mod tests {
         fn test(s: &str, format: &str) -> bool {
             match strptime(s, format) {
               Ok(ref tm) => tm.strftime(format).unwrap() == s.to_string(),
-              Err(e) => fail!(e)
+              Err(e) => panic!(e)
             }
         }