Skip to content

Commit 1ca2d0b

Browse files
committed
---
yaml --- r: 152455 b: refs/heads/try2 c: 3316b1e h: refs/heads/master i: 152453: 0aa9430 152451: cfd4eb7 152447: 0489d45 v: v3
1 parent 098c602 commit 1ca2d0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+356
-824
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: f9260d41d6e37653bf71b08a041be0310098716a
8+
refs/heads/try2: 3316b1eb7c3eb520896af489dd45c4d17190d0a8
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/liballoc/heap.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,6 @@ unsafe fn closure_exchange_malloc(drop_glue: fn(*mut u8), size: uint, align: uin
155155
alloc as *mut u8
156156
}
157157

158-
// hack for libcore
159-
#[no_mangle]
160-
#[doc(hidden)]
161-
#[deprecated]
162-
#[cfg(not(test))]
163-
pub unsafe extern "C" fn rust_allocate(size: uint, align: uint) -> *mut u8 {
164-
allocate(size, align)
165-
}
166-
167-
// hack for libcore
168-
#[no_mangle]
169-
#[doc(hidden)]
170-
#[deprecated]
171-
#[cfg(not(test))]
172-
pub unsafe extern "C" fn rust_deallocate(ptr: *mut u8, size: uint, align: uint) {
173-
deallocate(ptr, size, align)
174-
}
175-
176158
#[cfg(test)]
177159
mod bench {
178160
extern crate test;
@@ -184,11 +166,4 @@ mod bench {
184166
box 10
185167
})
186168
}
187-
188-
#[bench]
189-
fn alloc_owned_big(b: &mut Bencher) {
190-
b.iter(|| {
191-
box [10, ..1000]
192-
})
193-
}
194169
}

branches/try2/src/libcollections/hash/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,6 @@ impl<'a, S: Writer, T: Hash<S>> Hash<S> for &'a mut [T] {
213213
}
214214
}
215215

216-
impl<S: Writer, T: Hash<S>> Hash<S> for ~[T] {
217-
#[inline]
218-
fn hash(&self, state: &mut S) {
219-
self.as_slice().hash(state);
220-
}
221-
}
222-
223216
impl<S: Writer, T: Hash<S>> Hash<S> for Vec<T> {
224217
#[inline]
225218
fn hash(&self, state: &mut S) {

branches/try2/src/libcollections/hash/sip.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ mod tests {
276276
use str::Str;
277277
use string::String;
278278
use slice::{Vector, ImmutableVector};
279+
use vec::Vec;
279280

280281
use super::super::{Hash, Writer};
281282
use super::{SipState, hash, hash_with_keys};
@@ -376,8 +377,8 @@ mod tests {
376377
s
377378
}
378379

379-
fn result_bytes(h: u64) -> ~[u8] {
380-
box [(h >> 0) as u8,
380+
fn result_bytes(h: u64) -> Vec<u8> {
381+
vec![(h >> 0) as u8,
381382
(h >> 8) as u8,
382383
(h >> 16) as u8,
383384
(h >> 24) as u8,

0 commit comments

Comments
 (0)