diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-08 18:21:49 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 10:14:50 -0700 |
| commit | bb9172d7b512c36f34d34b024640f030d1fde2eb (patch) | |
| tree | 0e4ea18ae30a12954db6b9fbe95f62222ade9301 /src/libstd/c_vec.rs | |
| parent | bdd24b2a56e8bf6b952bd8880364fb0a57c2c540 (diff) | |
| download | rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.tar.gz rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.zip | |
Fix fallout of removing default bounds
This is all purely fallout of getting the previous commit to compile.
Diffstat (limited to 'src/libstd/c_vec.rs')
| -rw-r--r-- | src/libstd/c_vec.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/c_vec.rs b/src/libstd/c_vec.rs index 00d250a5fc7..a6cc4c64d20 100644 --- a/src/libstd/c_vec.rs +++ b/src/libstd/c_vec.rs @@ -35,17 +35,18 @@ use cast; use container::Container; -use ptr; +use kinds::Send; +use ops::Drop; +use option::{Option, Some, None}; use ptr::RawPtr; +use ptr; use raw; -use option::{Option, Some, None}; -use ops::Drop; /// The type representing a foreign chunk of memory pub struct CVec<T> { priv base: *mut T, priv len: uint, - priv dtor: Option<proc()>, + priv dtor: Option<proc:Send()>, } #[unsafe_destructor] @@ -89,7 +90,7 @@ impl<T> CVec<T> { /// * dtor - A proc to run when the value is destructed, useful /// for freeing the buffer, etc. pub unsafe fn new_with_dtor(base: *mut T, len: uint, - dtor: proc()) -> CVec<T> { + dtor: proc:Send()) -> CVec<T> { assert!(base != ptr::mut_null()); CVec { base: base, |
