From a8ba31dbf3e7d80a069bc486a35eff8357282b68 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 27 Sep 2013 17:02:31 -0700 Subject: std: Remove usage of fmt! --- src/libstd/select.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/select.rs') diff --git a/src/libstd/select.rs b/src/libstd/select.rs index 8c55e13ae58..2554a0ad588 100644 --- a/src/libstd/select.rs +++ b/src/libstd/select.rs @@ -35,7 +35,7 @@ pub trait SelectPort : SelectPortInner { } /// port whose data is ready. (If multiple are ready, returns the lowest index.) pub fn select(ports: &mut [A]) -> uint { if ports.is_empty() { - fail!("can't select on an empty list"); + fail2!("can't select on an empty list"); } for (index, port) in ports.mut_iter().enumerate() { @@ -116,7 +116,7 @@ pub fn select2, TB, B: SelectPort>(mut a: A, mut b: B) match result { 0 => Left ((a.recv_ready(), b)), 1 => Right((a, b.recv_ready())), - x => fail!("impossible case in select2: %?", x) + x => fail2!("impossible case in select2: {:?}", x) } } @@ -335,7 +335,7 @@ mod test { let _ = dead_cs; } do task::spawn { - fail!(); // should kill sibling awake + fail2!(); // should kill sibling awake } // wait for killed selector to close (NOT send on) its c. -- cgit 1.4.1-3-g733a5