Revert "Revert "std: Re-enable at_exit()""
This reverts commit aec67c2ee0.
This commit is contained in:
parent
46f649c479
commit
1cc9718fde
10 changed files with 86 additions and 51 deletions
|
|
@ -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!();
|
||||
|
|
|
|||
|
|
@ -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<_>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue