Skip to content

Commit

Permalink
auto merge of #6232 : pcwalton/rust/demuting, r=pcwalton
Browse files Browse the repository at this point in the history
They're still parsed for bootstrapping purposes, but the qualifier is immediately dropped on the floor.

r? @nikomatsakis
  • Loading branch information
bors committed May 9, 2013
2 parents 5a65f51 + d20e63a commit d82d987
Show file tree
Hide file tree
Showing 164 changed files with 1,596 additions and 1,338 deletions.
8 changes: 4 additions & 4 deletions src/libcore/at_vec.rs
Expand Up @@ -29,9 +29,9 @@ pub mod rustrt {
#[abi = "cdecl"]
#[link_name = "rustrt"]
pub extern {
pub unsafe fn vec_reserve_shared_actual(++t: *sys::TypeDesc,
++v: **vec::raw::VecRepr,
++n: libc::size_t);
pub unsafe fn vec_reserve_shared_actual(t: *sys::TypeDesc,
v: **vec::raw::VecRepr,
n: libc::size_t);
}
}

Expand Down Expand Up @@ -60,7 +60,7 @@ pub fn capacity<T>(v: @[T]) -> uint {
pub fn build_sized<A>(size: uint, builder: &fn(push: &fn(v: A))) -> @[A] {
let mut vec: @[A] = @[];
unsafe { raw::reserve(&mut vec, size); }
builder(|+x| unsafe { raw::push(&mut vec, x) });
builder(|x| unsafe { raw::push(&mut vec, x) });
return unsafe { transmute(vec) };
}

Expand Down
2 changes: 1 addition & 1 deletion src/libcore/cast.rs
Expand Up @@ -17,7 +17,7 @@ pub mod rusti {
#[abi = "rust-intrinsic"]
#[link_name = "rusti"]
pub extern "rust-intrinsic" {
fn forget<T>(+x: T);
fn forget<T>(x: T);

fn transmute<T,U>(e: T) -> U;
}
Expand Down

0 comments on commit d82d987

Please sign in to comment.