diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-21 13:08:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 08:09:56 -0700 |
| commit | daf5f5a4d10513ff42e79fa7ef8819b170f3a13d (patch) | |
| tree | 7a07a79c43e02debcc6bbb33d90a5e41b70119e6 /src/libextra/future.rs | |
| parent | 15a6bdebab4e7b811b9a902e3f8ed225c59af06e (diff) | |
Drop the '2' suffix from logging macros
Who doesn't like a massive renaming?
Diffstat (limited to 'src/libextra/future.rs')
| -rw-r--r-- | src/libextra/future.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libextra/future.rs b/src/libextra/future.rs index 516a34f5312..fdb296e5f40 100644 --- a/src/libextra/future.rs +++ b/src/libextra/future.rs @@ -57,7 +57,7 @@ impl<A> Future<A> { let state = replace(&mut this.state, Evaluating); match state { Forced(v) => v, - _ => fail2!( "Logic error." ), + _ => fail!( "Logic error." ), } } @@ -69,10 +69,10 @@ impl<A> Future<A> { */ match self.state { Forced(ref v) => return v, - Evaluating => fail2!("Recursive forcing of future!"), + Evaluating => fail!("Recursive forcing of future!"), Pending(_) => { match replace(&mut self.state, Evaluating) { - Forced(_) | Evaluating => fail2!("Logic error."), + Forced(_) | Evaluating => fail!("Logic error."), Pending(f) => { self.state = Forced(f()); self.get_ref() @@ -217,7 +217,7 @@ mod test { #[test] #[should_fail] fn test_futurefail() { - let mut f = Future::spawn(|| fail2!()); + let mut f = Future::spawn(|| fail!()); let _x: ~str = f.get(); } |
