Skip to content

Commit 83e302a

Browse files
authored
Rollup merge of rust-lang#137620 - SergioGasquez:fix/espidf-maybeunit, r=ChrisDenton
Fix `attr` cast for espidf rust-lang#136826 broke ESP-IDF builds with: https://github.com/esp-rs/esp-idf-template/actions/runs/13516221587/job/37765336588. This PR fixes it. cc: ``@ivmarkov`` ``@xizheyin``
2 parents 97600a0 + 129cda1 commit 83e302a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/pal/unix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Thread {
5959
assert_eq!(
6060
libc::pthread_attr_setstacksize(
6161
attr.as_mut_ptr(),
62-
cmp::max(stack, min_stack_size(&attr))
62+
cmp::max(stack, min_stack_size(attr.as_ptr()))
6363
),
6464
0
6565
);

0 commit comments

Comments
 (0)