auto merge of #8412 : thestinger/rust/vector-add, r=alexcrichton

This commit is contained in:
bors 2013-08-11 04:11:08 -07:00
commit 45da2a5f48
3 changed files with 44 additions and 16 deletions

View file

@ -12,8 +12,7 @@
use c_str::ToCStr;
use cast::transmute;
use libc::{c_char, c_uchar, c_void, size_t, uintptr_t};
use str;
use libc::{c_char, c_void, size_t, uintptr_t};
use sys;
use rt::task::Task;
use rt::local::Local;
@ -93,12 +92,6 @@ pub unsafe fn check_not_borrowed(a: *u8,
borrowck::check_not_borrowed(a, file, line)
}
#[lang="strdup_uniq"]
#[inline]
pub unsafe fn strdup_uniq(ptr: *c_uchar, len: uint) -> ~str {
str::raw::from_buf_len(ptr, len)
}
#[lang="annihilate"]
pub unsafe fn annihilate() {
::cleanup::annihilate()