about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-04-13 15:15:32 -0700
committerAaron Turon <aturon@mozilla.com>2015-04-14 08:15:45 -0700
commita9fd41e1f984fdfecb78ba9570bb159854c58b16 (patch)
treed7dcda50ed1a28a5f3c1e1c7af3225516bb12522 /src/librustdoc
parent6e0fb70ff6effe7b7be2c5fe951e9161613e6707 (diff)
downloadrust-a9fd41e1f984fdfecb78ba9570bb159854c58b16.tar.gz
rust-a9fd41e1f984fdfecb78ba9570bb159854c58b16.zip
Fallout: move from scoped to spawn
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index bdee53cd009..1393c39f66c 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -130,10 +130,10 @@ struct Output {
 
 pub fn main() {
     const STACK_SIZE: usize = 32000000; // 32MB
-    let res = std::thread::Builder::new().stack_size(STACK_SIZE).scoped(move || {
+    let res = std::thread::Builder::new().stack_size(STACK_SIZE).spawn(move || {
         let s = env::args().collect::<Vec<_>>();
         main_args(&s)
-    }).unwrap().join();
+    }).unwrap().join().unwrap();
     env::set_exit_status(res as i32);
 }