Skip to content

Commit e5e5bc6

Browse files
committed
Auto merge of rust-lang#118823 - GuillaumeGomez:rollup-6v51gxv, r=GuillaumeGomez
Rollup of 3 pull requests Successful merges: - rust-lang#118802 (Remove edition umbrella features.) - rust-lang#118807 (Remove an allocation in min_stack) - rust-lang#118812 (rustdoc-search: do not treat associated type names as types) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 3f97f2c + fedb37b commit e5e5bc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys_common/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub fn min_stack() -> usize {
88
0 => {}
99
n => return n - 1,
1010
}
11-
let amt = env::var("RUST_MIN_STACK").ok().and_then(|s| s.parse().ok());
11+
let amt = env::var_os("RUST_MIN_STACK").and_then(|s| s.to_str().and_then(|s| s.parse().ok()));
1212
let amt = amt.unwrap_or(imp::DEFAULT_MIN_STACK_SIZE);
1313

1414
// 0 is our sentinel value, so ensure that we'll never see 0 after

0 commit comments

Comments
 (0)