mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 23:42:56 +00:00
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:
commit
96efcdf065
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user