Revert "Revert "std: Re-enable at_exit()""

This reverts commit aec67c2ee0.
This commit is contained in:
Alex Crichton 2015-01-01 10:19:42 -08:00
parent 46f649c479
commit 1cc9718fde
10 changed files with 86 additions and 51 deletions

View file

@ -35,7 +35,7 @@ fn r(x:int) -> r {
fn main() {
error!("whatever");
let _t = thread::spawn(move|| {
let _t = thread::scoped(move|| {
let _i = r(5);
});
panic!();

View file

@ -25,7 +25,7 @@ pub fn main() {
let _t = (0..n).map(|i| {
expected += i;
let tx = tx.clone();
thread::spawn(move|| {
thread::scoped(move|| {
child(&tx, i)
})
}).collect::<Vec<_>>();