about summary refs log tree commit diff
path: root/src/libstd/option.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-21 13:08:31 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-22 08:09:56 -0700
commitdaf5f5a4d10513ff42e79fa7ef8819b170f3a13d (patch)
tree7a07a79c43e02debcc6bbb33d90a5e41b70119e6 /src/libstd/option.rs
parent15a6bdebab4e7b811b9a902e3f8ed225c59af06e (diff)
downloadrust-daf5f5a4d10513ff42e79fa7ef8819b170f3a13d.tar.gz
rust-daf5f5a4d10513ff42e79fa7ef8819b170f3a13d.zip
Drop the '2' suffix from logging macros
Who doesn't like a massive renaming?
Diffstat (limited to 'src/libstd/option.rs')
-rw-r--r--src/libstd/option.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/option.rs b/src/libstd/option.rs
index cdff32a46dc..732dbe64d01 100644
--- a/src/libstd/option.rs
+++ b/src/libstd/option.rs
@@ -244,7 +244,7 @@ impl<T> Option<T> {
     pub fn get_ref<'a>(&'a self) -> &'a T {
         match *self {
             Some(ref x) => x,
-            None => fail2!("called `Option::get_ref()` on a `None` value"),
+            None => fail!("called `Option::get_ref()` on a `None` value"),
         }
     }
 
@@ -264,7 +264,7 @@ impl<T> Option<T> {
     pub fn get_mut_ref<'a>(&'a mut self) -> &'a mut T {
         match *self {
             Some(ref mut x) => x,
-            None => fail2!("called `Option::get_mut_ref()` on a `None` value"),
+            None => fail!("called `Option::get_mut_ref()` on a `None` value"),
         }
     }
 
@@ -286,7 +286,7 @@ impl<T> Option<T> {
     pub fn unwrap(self) -> T {
         match self {
             Some(x) => x,
-            None => fail2!("called `Option::unwrap()` on a `None` value"),
+            None => fail!("called `Option::unwrap()` on a `None` value"),
         }
     }
 
@@ -299,7 +299,7 @@ impl<T> Option<T> {
     #[inline]
     pub fn take_unwrap(&mut self) -> T {
         if self.is_none() {
-            fail2!("called `Option::take_unwrap()` on a `None` value")
+            fail!("called `Option::take_unwrap()` on a `None` value")
         }
         self.take().unwrap()
     }
@@ -314,7 +314,7 @@ impl<T> Option<T> {
     pub fn expect(self, reason: &str) -> T {
         match self {
             Some(val) => val,
-            None => fail2!("{}", reason.to_owned()),
+            None => fail!("{}", reason.to_owned()),
         }
     }
 
@@ -630,7 +630,7 @@ mod tests {
 
     #[test]
     #[should_fail]
-    fn test_unwrap_fail2() {
+    fn test_unwrap_fail() {
         let x: Option<~str> = None;
         x.unwrap();
     }