diff options
| author | bors <bors@rust-lang.org> | 2019-01-29 05:22:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-29 05:22:51 +0000 |
| commit | 5f60208ba11171c249284f8fe0ea6b3e9b63383c (patch) | |
| tree | a6995e1eb1f22d67fe3ef79ef8e41fb9db6f4147 /src/libstd/thread | |
| parent | d8a0dd7ae88023bd09fa4b86c9ca1f6ed8095b43 (diff) | |
| parent | d77db2e99ebc54c73af60223466e9d95a36fe0f1 (diff) | |
| download | rust-5f60208ba11171c249284f8fe0ea6b3e9b63383c.tar.gz rust-5f60208ba11171c249284f8fe0ea6b3e9b63383c.zip | |
Auto merge of #57957 - Centril:rollup, r=Centril
Rollup of 7 pull requests Successful merges: - #57045 (Kill remaining uses of mem::uninitialized in libcore, liballoc) - #57674 (Avoid erase_regions_ty queries if there are no regions to erase) - #57833 (Print a slightly clearer message when failing to launch a thread) - #57859 (Fix invalid background color) - #57904 (add typo suggestion to unknown attribute error) - #57915 (Pretty print `$crate` as `crate` or `crate_name` in more cases) - #57950 (Extend E0106, E0261) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index a55b32c08a3..eb8e0c1c8ac 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -607,7 +607,7 @@ impl Builder { pub fn spawn<F, T>(f: F) -> JoinHandle<T> where F: FnOnce() -> T, F: Send + 'static, T: Send + 'static { - Builder::new().spawn(f).unwrap() + Builder::new().spawn(f).expect("failed to spawn thread") } /// Gets a handle to the thread that invokes it. |
