about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-23 14:48:54 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-23 23:28:49 +0530
commitdb04229d23119e76f52408b61d960e1bcc52af7a (patch)
tree0ea536aed48e5e6f97b607725575309102f60eca /src/libstd/sys/unix/stack_overflow.rs
parentb2302a50ed534ed671d87835f435af4034705cbe (diff)
parent26d9f0ab1aeb3d7b440911104cf17741f83aa0f5 (diff)
downloadrust-db04229d23119e76f52408b61d960e1bcc52af7a.tar.gz
rust-db04229d23119e76f52408b61d960e1bcc52af7a.zip
Rollup merge of #22696 - stepancheg:use-box, r=alexcrichton
 e. g.

```
let b: Box<Foo> = Box::from_raw(p);
```

instead of

```
let b: Box<Foo> = mem::transmute(p);
```

Patch also changes closure release code in `src/libstd/sys/unix/thread.rs`
when `pthread_create` failed. Raw pointer was transmuted to box of
`FnOnce()` instead of `Thunk`. This code was probably never executed,
because `pthread_create` rarely fails.

(And there are two more patches in PR: fix typo in doc and mark `from_raw` and `into_raw` functions inline.)
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions