Skip to content

Commit 6ef7fe3

Browse files
tbu-Manishearth
authored andcommitted
---
yaml --- r: 193365 b: refs/heads/beta c: d18897c h: refs/heads/master i: 193363: 0e33c61 v: v3
1 parent 43ccf30 commit 6ef7fe3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 2e15a7d92e622f9f7d90aeab331fe8abb3089ce6
34+
refs/heads/beta: d18897cadfe243591bac2c606d63ce37449d5257
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/libstd/thread.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl Builder {
277277
// address at which our stack started).
278278
let main = move || {
279279
let something_around_the_top_of_the_stack = 1;
280-
let addr = &something_around_the_top_of_the_stack as *const isize;
280+
let addr = &something_around_the_top_of_the_stack as *const i32;
281281
let my_stack_top = addr as usize;
282282
let my_stack_bottom = my_stack_top - stack_size + 1024;
283283
unsafe {
@@ -802,13 +802,13 @@ mod test {
802802
}
803803

804804
fn avoid_copying_the_body<F>(spawnfn: F) where F: FnOnce(Thunk<'static>) {
805-
let (tx, rx) = channel::<u32>();
805+
let (tx, rx) = channel();
806806

807807
let x = box 1;
808-
let x_in_parent = (&*x) as *const isize as u32;
808+
let x_in_parent = (&*x) as *const i32 as usize;
809809

810810
spawnfn(Thunk::new(move|| {
811-
let x_in_child = (&*x) as *const isize as u32;
811+
let x_in_child = (&*x) as *const i32 as usize;
812812
tx.send(x_in_child).unwrap();
813813
}));
814814

@@ -847,8 +847,8 @@ mod test {
847847
// climbing the task tree to dereference each ancestor. (See #1789)
848848
// (well, it would if the constant were 8000+ - I lowered it to be more
849849
// valgrind-friendly. try this at home, instead..!)
850-
const GENERATIONS: usize = 16;
851-
fn child_no(x: usize) -> Thunk<'static> {
850+
const GENERATIONS: u32 = 16;
851+
fn child_no(x: u32) -> Thunk<'static> {
852852
return Thunk::new(move|| {
853853
if x < GENERATIONS {
854854
thread::spawn(move|| child_no(x+1).invoke(()));

0 commit comments

Comments
 (0)