Skip to content

Commit

Permalink
Unrolled build for rust-lang#137620
Browse files Browse the repository at this point in the history
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``
  • Loading branch information
rust-timer authored Feb 26, 2025
2 parents ac91805 + 622b4fa commit 1a184cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Thread {
assert_eq!(
libc::pthread_attr_setstacksize(
attr.as_mut_ptr(),
cmp::max(stack, min_stack_size(&attr))
cmp::max(stack, min_stack_size(attr.as_ptr()))
),
0
);
Expand Down

0 comments on commit 1a184cb

Please sign in to comment.