Skip to content

Commit 2cedc1a

Browse files
committed
---
yaml --- r: 150399 b: refs/heads/try2 c: 86890b9 h: refs/heads/master i: 150397: a459914 150395: 00d3101 150391: 986e1d8 150383: d39e7f3 150367: 5507b10 150335: be1fad8 150271: 95c51a8 v: v3
1 parent c970f31 commit 2cedc1a

File tree

13 files changed

+40
-299
lines changed

13 files changed

+40
-299
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: 9ed33c00ead8ad048488476310da434c461f4a4e
8+
refs/heads/try2: 86890b9e7c5db28ac2da5cd63d1a51d63a5e6bec
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/configure

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ case $CFG_OSTYPE in
274274
MINGW32*)
275275
CFG_OSTYPE=pc-mingw32
276276
;;
277+
278+
MINGW64*)
279+
# msys2, MSYSTEM=MINGW64
280+
CFG_OSTYPE=w64-mingw32
281+
;;
282+
277283
# Thad's Cygwin identifers below
278284

279285
# Vista 32 bit
@@ -407,7 +413,7 @@ valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
407413
# --libdir is used to configure the installation directory.
408414
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
409415
CFG_LIBDIR_RELATIVE=lib
410-
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
416+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
411417
then
412418
CFG_LIBDIR_RELATIVE=bin
413419
fi
@@ -533,7 +539,7 @@ then
533539
fi
534540

535541
BIN_SUF=
536-
if [ $CFG_OSTYPE = "pc-mingw32" ]
542+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
537543
then
538544
BIN_SUF=.exe
539545
fi

branches/try2/src/libarena/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
extern crate collections;
2929

30-
use collections::list::{List, Cons, Nil};
31-
3230
use std::cast::{transmute, transmute_mut, transmute_mut_region};
3331
use std::cast;
3432
use std::cell::{Cell, RefCell};
@@ -87,7 +85,7 @@ pub struct Arena {
8785
// access the head.
8886
priv head: Chunk,
8987
priv copy_head: Chunk,
90-
priv chunks: RefCell<@List<Chunk>>,
88+
priv chunks: RefCell<Vec<Chunk>>,
9189
}
9290

9391
impl Arena {
@@ -99,7 +97,7 @@ impl Arena {
9997
Arena {
10098
head: chunk(initial_size, false),
10199
copy_head: chunk(initial_size, true),
102-
chunks: RefCell::new(@Nil),
100+
chunks: RefCell::new(Vec::new()),
103101
}
104102
}
105103
}
@@ -117,7 +115,7 @@ impl Drop for Arena {
117115
fn drop(&mut self) {
118116
unsafe {
119117
destroy_chunk(&self.head);
120-
for chunk in self.chunks.get().iter() {
118+
for chunk in self.chunks.borrow().iter() {
121119
if !chunk.is_copy.get() {
122120
destroy_chunk(chunk);
123121
}
@@ -179,7 +177,7 @@ impl Arena {
179177
fn alloc_copy_grow(&mut self, n_bytes: uint, align: uint) -> *u8 {
180178
// Allocate a new chunk.
181179
let new_min_chunk_size = cmp::max(n_bytes, self.chunk_size());
182-
self.chunks.set(@Cons(self.copy_head.clone(), self.chunks.get()));
180+
self.chunks.borrow_mut().push(self.copy_head.clone());
183181
self.copy_head =
184182
chunk(num::next_power_of_two(new_min_chunk_size + 1u), true);
185183

@@ -219,7 +217,7 @@ impl Arena {
219217
-> (*u8, *u8) {
220218
// Allocate a new chunk.
221219
let new_min_chunk_size = cmp::max(n_bytes, self.chunk_size());
222-
self.chunks.set(@Cons(self.head.clone(), self.chunks.get()));
220+
self.chunks.borrow_mut().push(self.head.clone());
223221
self.head =
224222
chunk(num::next_power_of_two(new_min_chunk_size + 1u), false);
225223

branches/try2/src/libcollections/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ pub use deque::Deque;
3333
pub use dlist::DList;
3434
pub use enum_set::EnumSet;
3535
pub use hashmap::{HashMap, HashSet};
36-
pub use list::List;
3736
pub use lru_cache::LruCache;
3837
pub use priority_queue::PriorityQueue;
3938
pub use ringbuf::RingBuf;
@@ -47,7 +46,6 @@ pub mod deque;
4746
pub mod dlist;
4847
pub mod enum_set;
4948
pub mod hashmap;
50-
pub mod list;
5149
pub mod lru_cache;
5250
pub mod priority_queue;
5351
pub mod ringbuf;

branches/try2/src/libcollections/list.rs

Lines changed: 0 additions & 237 deletions
This file was deleted.

branches/try2/src/libgreen/sched.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ mod test {
14731473
let mut handle = pool.spawn_sched();
14741474
handle.send(PinnedTask(pool.task(TaskOpts::new(), proc() {
14751475
unsafe {
1476-
let mut guard = LOCK.lock();
1476+
let guard = LOCK.lock();
14771477

14781478
start_tx.send(());
14791479
guard.wait(); // block the scheduler thread
@@ -1509,7 +1509,7 @@ mod test {
15091509
child_tx.send(20);
15101510
pingpong(&parent_rx, &child_tx);
15111511
unsafe {
1512-
let mut guard = LOCK.lock();
1512+
let guard = LOCK.lock();
15131513
guard.signal(); // wakeup waiting scheduler
15141514
guard.wait(); // wait for them to grab the lock
15151515
}

branches/try2/src/librustc/middle/typeck/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ use util::nodemap::{DefIdMap, FnvHashMap};
7272

7373
use std::cell::RefCell;
7474
use std::rc::Rc;
75-
use collections::List;
7675
use syntax::codemap::Span;
7776
use syntax::print::pprust::*;
7877
use syntax::{ast, ast_map, abi};
@@ -327,7 +326,7 @@ pub fn require_same_types(tcx: &ty::ctxt,
327326

328327
// a list of mapping from in-scope-region-names ("isr") to the
329328
// corresponding ty::Region
330-
pub type isr_alist = @List<(ty::BoundRegion, ty::Region)>;
329+
pub type isr_alist = @Vec<(ty::BoundRegion, ty::Region)>;
331330

332331
trait get_region<'a, T:'static> {
333332
fn get(&'a self, br: ty::BoundRegion) -> ty::Region;

branches/try2/src/libstd/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ mod tests {
23352335

23362336
#[test]
23372337
fn test_counter_from_iter() {
2338-
let mut it = count(0, 5).take(10);
2338+
let it = count(0, 5).take(10);
23392339
let xs: ~[int] = FromIterator::from_iterator(it);
23402340
assert_eq!(xs, ~[0, 5, 10, 15, 20, 25, 30, 35, 40, 45]);
23412341
}

0 commit comments

Comments
 (0)