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/at_vec.rs | |
| parent | aaf6cc3a841095a95a9c74a6a2a3709dffd7a4e9 (diff) | |
| download | rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.tar.gz rust-a8ba31dbf3e7d80a069bc486a35eff8357282b68.zip | |
std: Remove usage of fmt!
Diffstat (limited to 'src/libstd/at_vec.rs')
| -rw-r--r-- | src/libstd/at_vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/at_vec.rs b/src/libstd/at_vec.rs index 42f511f722d..93a66f6d917 100644 --- a/src/libstd/at_vec.rs +++ b/src/libstd/at_vec.rs @@ -236,7 +236,7 @@ pub mod raw { let alloc = n * (*ty).size; let total_size = alloc + sys::size_of::<Vec<()>>(); if alloc / (*ty).size != n || total_size < alloc { - fail!("vector size is too large: %u", n); + fail2!("vector size is too large: {}", n); } (*ptr) = local_realloc(*ptr as *(), total_size) as *mut Box<Vec<()>>; (**ptr).data.alloc = alloc; |
