Skip to content

Commit a820288

Browse files
committed
---
yaml --- r: 72040 b: refs/heads/dist-snap c: 7bfd0e5 h: refs/heads/master v: v3
1 parent 6b3feb7 commit a820288

Some content is hidden

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

68 files changed

+3425
-3919
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: e7aa24de18bb1be6764c90bc08fecb322aeb7154
10+
refs/heads/dist-snap: 7bfd0e5035418bc162304ef87a5c5630abfe3830
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/RELEASES.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
Version 0.7 (July 2013)
2-
-----------------------
3-
4-
* ??? changes, numerous bugfixes
5-
6-
* Semantic changes
7-
* The `self` parameter no longer implicitly means `&'self self`, and can be explicitly marked
8-
with a lifetime.
9-
10-
* Libraries
11-
* New `core::iterator` module for external iterator objects
12-
131
Version 0.6 (April 2013)
14-
------------------------
2+
---------------------------
153

164
* ~2100 changes, numerous bugfixes
175

branches/dist-snap/src/libcore/at_vec.rs

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -277,49 +277,45 @@ pub mod raw {
277277
pub unsafe fn reserve_at_least<T>(v: &mut @[T], n: uint) {
278278
reserve(v, uint::next_power_of_two(n));
279279
}
280+
280281
}
281282

282-
#[cfg(test)]
283-
mod test {
284-
use super::*;
285-
use prelude::*;
286-
287-
#[test]
288-
fn test() {
289-
// Some code that could use that, then:
290-
fn seq_range(lo: uint, hi: uint) -> @[uint] {
291-
do build |push| {
292-
for uint::range(lo, hi) |i| {
293-
push(i);
294-
}
283+
#[test]
284+
pub fn test() {
285+
// Some code that could use that, then:
286+
fn seq_range(lo: uint, hi: uint) -> @[uint] {
287+
do build |push| {
288+
for uint::range(lo, hi) |i| {
289+
push(i);
295290
}
296291
}
297-
298-
assert_eq!(seq_range(10, 15), @[10, 11, 12, 13, 14]);
299-
assert!(from_fn(5, |x| x+1) == @[1, 2, 3, 4, 5]);
300-
assert!(from_elem(5, 3.14) == @[3.14, 3.14, 3.14, 3.14, 3.14]);
301292
}
302293

303-
#[test]
304-
fn append_test() {
305-
assert!(@[1,2,3] + @[4,5,6] == @[1,2,3,4,5,6]);
306-
}
294+
assert_eq!(seq_range(10, 15), @[10, 11, 12, 13, 14]);
295+
assert!(from_fn(5, |x| x+1) == @[1, 2, 3, 4, 5]);
296+
assert!(from_elem(5, 3.14) == @[3.14, 3.14, 3.14, 3.14, 3.14]);
297+
}
307298

308-
#[test]
309-
fn test_from_owned() {
310-
assert!(from_owned::<int>(~[]) == @[]);
311-
assert!(from_owned(~[true]) == @[true]);
312-
assert!(from_owned(~[1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
313-
assert!(from_owned(~[~"abc", ~"123"]) == @[~"abc", ~"123"]);
314-
assert!(from_owned(~[~[42]]) == @[~[42]]);
315-
}
299+
#[test]
300+
pub fn append_test() {
301+
assert!(@[1,2,3] + @[4,5,6] == @[1,2,3,4,5,6]);
302+
}
303+
304+
#[test]
305+
pub fn test_from_owned() {
306+
assert!(from_owned::<int>(~[]) == @[]);
307+
assert!(from_owned(~[true]) == @[true]);
308+
assert!(from_owned(~[1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
309+
assert!(from_owned(~[~"abc", ~"123"]) == @[~"abc", ~"123"]);
310+
assert!(from_owned(~[~[42]]) == @[~[42]]);
311+
}
312+
313+
#[test]
314+
pub fn test_from_slice() {
315+
assert!(from_slice::<int>([]) == @[]);
316+
assert!(from_slice([true]) == @[true]);
317+
assert!(from_slice([1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
318+
assert!(from_slice([@"abc", @"123"]) == @[@"abc", @"123"]);
319+
assert!(from_slice([@[42]]) == @[@[42]]);
320+
}
316321

317-
#[test]
318-
fn test_from_slice() {
319-
assert!(from_slice::<int>([]) == @[]);
320-
assert!(from_slice([true]) == @[true]);
321-
assert!(from_slice([1, 2, 3, 4, 5]) == @[1, 2, 3, 4, 5]);
322-
assert!(from_slice([@"abc", @"123"]) == @[@"abc", @"123"]);
323-
assert!(from_slice([@[42]]) == @[@[42]]);
324-
}
325-
}

branches/dist-snap/src/libcore/cast.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ pub unsafe fn copy_lifetime_vec<'a,S,T>(_ptr: &'a [S], ptr: &T) -> &'a T {
111111
****************************************************************************/
112112

113113
#[cfg(test)]
114-
mod tests {
114+
pub mod tests {
115115
use cast::{bump_box_refcount, reinterpret_cast, transmute};
116116

117117
#[test]
118-
fn test_reinterpret_cast() {
118+
pub fn test_reinterpret_cast() {
119119
assert!(1u == unsafe { reinterpret_cast(&1) });
120120
}
121121

122122
#[test]
123-
fn test_bump_box_refcount() {
123+
pub fn test_bump_box_refcount() {
124124
unsafe {
125125
let box = @~"box box box"; // refcount 1
126126
bump_box_refcount(box); // refcount 2
@@ -135,7 +135,7 @@ mod tests {
135135
}
136136
137137
#[test]
138-
fn test_transmute() {
138+
pub fn test_transmute() {
139139
use managed::raw::BoxRepr;
140140
unsafe {
141141
let x = @100u8;
@@ -146,7 +146,7 @@ mod tests {
146146
}
147147
148148
#[test]
149-
fn test_transmute2() {
149+
pub fn test_transmute2() {
150150
unsafe {
151151
assert!(~[76u8, 0u8] == transmute(~"L"));
152152
}

branches/dist-snap/src/libcore/comm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ pub fn try_send_one<T: Owned>(chan: ChanOne<T>, data: T)
426426
}
427427
428428
#[cfg(test)]
429-
mod test {
429+
pub mod test {
430430
use either::Right;
431431
use super::{Chan, Port, oneshot, recv_one, stream};
432432
433433
#[test]
434-
fn test_select2() {
434+
pub fn test_select2() {
435435
let (p1, c1) = stream();
436436
let (p2, c2) = stream();
437437
@@ -446,7 +446,7 @@ mod test {
446446
}
447447

448448
#[test]
449-
fn test_oneshot() {
449+
pub fn test_oneshot() {
450450
let (c, p) = oneshot::init();
451451

452452
oneshot::client::send(c, ());

0 commit comments

Comments
 (0)