diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-27 17:02:31 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-30 23:21:18 -0700 |
| commit | a8ba31dbf3e7d80a069bc486a35eff8357282b68 (patch) | |
| tree | 8a00829d527c443d16988b98cd7c97f1d3d4dac6 /src/libstd/select.rs | |
| parent | aaf6cc3a841095a95a9c74a6a2a3709dffd7a4e9 (diff) | |
| download | rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.tar.gz rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.zip | |
std: Remove usage of fmt!
Diffstat (limited to 'src/libstd/select.rs')
| -rw-r--r-- | src/libstd/select.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<T> : SelectPortInner<T> { } /// port whose data is ready. (If multiple are ready, returns the lowest index.) pub fn select<A: 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<TA, A: SelectPort<TA>, TB, B: SelectPort<TB>>(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. |
