diff options
| author | bors <bors@rust-lang.org> | 2013-10-01 00:56:33 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-01 00:56:33 -0700 |
| commit | 8bb48cc1e607a7189c80c1d0f3f5567312bf1a99 (patch) | |
| tree | d963256840e228ef6b0949e8e7203850e763aba2 /src/libstd/rt/task.rs | |
| parent | f6df7ab839fef099af163463ae99b9541d3d12c5 (diff) | |
| parent | dec37051dd01b3faf921163a5d8370223ff77682 (diff) | |
| download | rust-8bb48cc1e607a7189c80c1d0f3f5567312bf1a99.tar.gz rust-8bb48cc1e607a7189c80c1d0f3f5567312bf1a99.zip | |
auto merge of #9599 : alexcrichton/rust/less-fmt, r=huonw
This also prevents future fmt! usage from leaking into the compiler, but it's still turned on by default for everyone else.
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 09bd89ec94a..0068d103073 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -225,7 +225,7 @@ impl Task { } pub fn run(&mut self, f: &fn()) { - rtdebug!("run called on task: %u", borrow::to_uint(self)); + rtdebug!("run called on task: {}", borrow::to_uint(self)); // The only try/catch block in the world. Attempt to run the task's // client-specified code and catch any failures. @@ -329,7 +329,7 @@ impl Task { impl Drop for Task { fn drop(&mut self) { - rtdebug!("called drop for a task: %u", borrow::to_uint(self)); + rtdebug!("called drop for a task: {}", borrow::to_uint(self)); rtassert!(self.destroyed) } } @@ -498,7 +498,7 @@ mod test { let result = spawntask_try(||()); rtdebug!("trying first assert"); assert!(result.is_ok()); - let result = spawntask_try(|| fail!()); + let result = spawntask_try(|| fail2!()); rtdebug!("trying second assert"); assert!(result.is_err()); } @@ -516,7 +516,7 @@ mod test { #[test] fn logging() { do run_in_newsched_task() { - info!("here i am. logging in a newsched task"); + info2!("here i am. logging in a newsched task"); } } @@ -558,7 +558,7 @@ mod test { fn linked_failure() { do run_in_newsched_task() { let res = do spawntask_try { - spawntask_random(|| fail!()); + spawntask_random(|| fail2!()); }; assert!(res.is_err()); } @@ -599,7 +599,7 @@ mod test { builder.future_result(|r| result = Some(r)); builder.unlinked(); do builder.spawn { - fail!(); + fail2!(); } assert_eq!(result.unwrap().recv(), Failure); } |
