Skip to content

Commit 58c4fb4

Browse files
committed
---
yaml --- r: 139999 b: refs/heads/try2 c: 7f45ae5 h: refs/heads/master i: 139997: 9519462 139995: 7cd031f 139991: fc1a630 139983: cef7135 139967: ba8009b v: v3
1 parent 5ee5fed commit 58c4fb4

File tree

9 files changed

+4
-58
lines changed

9 files changed

+4
-58
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: aee2567eca278c0632de09138977aa13ad0f46fd
8+
refs/heads/try2: 7f45ae54ea6609febda24a116e8c30b8fcda466b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Similar to a mutable option type, but friendlier.
2020
*/
2121

2222
pub struct Cell<T> {
23-
priv value: Option<T>
23+
value: Option<T>
2424
}
2525

2626
impl<T:cmp::Eq> cmp::Eq for Cell<T> {

branches/try2/src/libcore/gc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ pub mod rustrt {
7373
pub unsafe fn rust_gc_metadata() -> *Word;
7474

7575
pub unsafe fn rust_get_stack_segment() -> *StackSegment;
76-
pub unsafe fn rust_get_c_stack() -> *StackSegment;
7776
}
7877
}
7978

branches/try2/src/libcore/rand.rs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -115,40 +115,6 @@ impl Rand for bool {
115115
}
116116
}
117117

118-
macro_rules! tuple_impl {
119-
// use variables to indicate the arity of the tuple
120-
($($tyvar:ident),* ) => {
121-
// the trailing commas are for the 1 tuple
122-
impl<
123-
$( $tyvar : Rand ),*
124-
> Rand for ( $( $tyvar ),* , ) {
125-
126-
fn rand (_rng: @Rng) -> ( $( $tyvar ),* , ) {
127-
(
128-
// use the $var's to get the appropriate number of repeats
129-
// (they're not actually needed)
130-
$(
131-
_rng.gen::<$tyvar>()
132-
),*
133-
,
134-
)
135-
}
136-
}
137-
}
138-
}
139-
140-
impl Rand for () { fn rand(_: @Rng) -> () { () } }
141-
tuple_impl!{A}
142-
tuple_impl!{A, B}
143-
tuple_impl!{A, B, C}
144-
tuple_impl!{A, B, C, D}
145-
tuple_impl!{A, B, C, D, E}
146-
tuple_impl!{A, B, C, D, E, F}
147-
tuple_impl!{A, B, C, D, E, F, G}
148-
tuple_impl!{A, B, C, D, E, F, G, H}
149-
tuple_impl!{A, B, C, D, E, F, G, H, I}
150-
tuple_impl!{A, B, C, D, E, F, G, H, I, J}
151-
152118
impl<T:Rand> Rand for Option<T> {
153119
fn rand(rng: @rand::Rng) -> Option<T> {
154120
if rng.gen_bool() {
@@ -159,14 +125,6 @@ impl<T:Rand> Rand for Option<T> {
159125
}
160126
}
161127

162-
impl<T: Rand> Rand for ~T {
163-
fn rand(rng: @Rng) -> ~T { ~rng.gen() }
164-
}
165-
166-
impl<T: Rand> Rand for @T {
167-
fn rand(rng: @Rng) -> @T { @rng.gen() }
168-
}
169-
170128
#[allow(non_camel_case_types)] // runtime type
171129
pub enum rust_rng {}
172130

@@ -969,10 +927,6 @@ mod tests {
969927
let _n : uint = rand::random();
970928
let _f : f32 = rand::random();
971929
let _o : Option<Option<i8>> = rand::random();
972-
let _many : ((),
973-
(~uint, @int, ~Option<~(@char, ~(@bool,))>),
974-
(u8, i8, u16, i16, u32, i32, u64, i64),
975-
(f32, (f64, (float,)))) = rand::random();
976930
}
977931
}
978932

branches/try2/src/libstd/num/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
5151
#[inline(always)]
5252
pub fn new(numer: T, denom: T) -> Ratio<T> {
5353
if denom == Zero::zero() {
54-
fail!(~"denominator == 0");
54+
fail!(~"quotient of 0");
5555
}
5656
let mut ret = Ratio::new_raw(numer, denom);
5757
ret.reduce();

branches/try2/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 56dd407f4f97a01b8df6554c569170d2fc276fcb
1+
Subproject commit 2e9f0d21fe321849a4759a01fc28eae82ef196d6

branches/try2/src/rt/rust_builtin.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,6 @@ rust_get_stack_segment() {
549549
return rust_get_current_task()->stk;
550550
}
551551

552-
extern "C" CDECL stk_seg *
553-
rust_get_c_stack() {
554-
return rust_get_current_task()->get_c_stack();
555-
}
556-
557552
extern "C" CDECL void
558553
start_task(rust_task *target, fn_env_pair *f) {
559554
target->start(f->f, f->env, NULL);

branches/try2/src/rt/rust_task.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ rust_task : public kernel_owned<rust_task>
374374
void call_on_c_stack(void *args, void *fn_ptr);
375375
void call_on_rust_stack(void *args, void *fn_ptr);
376376
bool have_c_stack() { return c_stack != NULL; }
377-
stk_seg *get_c_stack() { return c_stack; }
378377

379378
rust_task_state get_state() { return state; }
380379
rust_cond *get_cond() { return cond; }

branches/try2/src/rt/rustrt.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ rust_task_is_unwinding
4949
rust_get_task
5050
rust_try_get_task
5151
rust_get_stack_segment
52-
rust_get_c_stack
5352
rust_log_str
5453
start_task
5554
vec_reserve_shared_actual

0 commit comments

Comments
 (0)