Rollup merge of #44054 - frewsxcv:frewsxcv-libstd-thread-unwrap-or-else, r=sfackler

Thread spawning: don't run `min_stack` if the user has specified stack size.

None
This commit is contained in:
Corey Farwell 2017-08-23 08:44:30 -04:00 committed by GitHub
commit 96efcdf065
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ impl Builder {
{
let Builder { name, stack_size } = self;
let stack_size = stack_size.unwrap_or(util::min_stack());
let stack_size = stack_size.unwrap_or_else(util::min_stack);
let my_thread = Thread::new(name);
let their_thread = my_thread.clone();