Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the size of certain types on espidf platform #2708

Merged
merged 1 commit into from
Mar 12, 2022

Conversation

MabezDev
Copy link
Contributor

@MabezDev MabezDev commented Mar 4, 2022

This was initially discovered in esp-rs/rust#92, the reason stat fails on the esp-idf platform is because the stat struct has a different layout on the Rust side compared to the C side.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Amanieu (or someone else) soon.

Please see the contribution instructions for more information.

@Amanieu
Copy link
Member

Amanieu commented Mar 4, 2022

LGTM! Is there a reason why this PR is still a draft?

@MabezDev
Copy link
Contributor Author

MabezDev commented Mar 5, 2022

Apologies! I was double checking the c typedef's are the same in both our xtensa & RISC based toolchains, and forgot to mark this as ready. Should be good to go now :)

@MabezDev MabezDev marked this pull request as ready for review March 5, 2022 21:23
@Amanieu
Copy link
Member

Amanieu commented Mar 7, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Mar 7, 2022

📌 Commit ab62380 has been approved by Amanieu

@bors
Copy link
Contributor

bors commented Mar 7, 2022

⌛ Testing commit ab62380 with merge b1a194c...

bors added a commit that referenced this pull request Mar 7, 2022
Correct the size of certain types on espidf platform

This was initially discovered in esp-rs/rust#92, the reason stat fails on the esp-idf platform is because the `stat` struct has a different layout on the Rust side compared to the C side.
@bors
Copy link
Contributor

bors commented Mar 7, 2022

💔 Test failed - checks-actions

@MabezDev
Copy link
Contributor Author

MabezDev commented Mar 8, 2022

CI failures seems unrelated? Looks like they're also failing on master.

@Amanieu
Copy link
Member

Amanieu commented Mar 11, 2022

@bors retry

@bors
Copy link
Contributor

bors commented Mar 11, 2022

⌛ Testing commit ab62380 with merge 6cf8c36...

bors added a commit that referenced this pull request Mar 11, 2022
Correct the size of certain types on espidf platform

This was initially discovered in esp-rs/rust#92, the reason stat fails on the esp-idf platform is because the `stat` struct has a different layout on the Rust side compared to the C side.
@bors
Copy link
Contributor

bors commented Mar 11, 2022

💔 Test failed - checks-actions

@Amanieu
Copy link
Member

Amanieu commented Mar 12, 2022

@bors retry

@bors
Copy link
Contributor

bors commented Mar 12, 2022

⌛ Testing commit ab62380 with merge 3318591...

@bors
Copy link
Contributor

bors commented Mar 12, 2022

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: Amanieu
Pushing 3318591 to master...

@gyscos
Copy link

gyscos commented Apr 12, 2022

Note that this broke building std on these espidf platforms.

See rust-lang/rust#95924

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Apr 16, 2022
…ark-Simulacrum

espidf: fix stat

Marking as draft as currently dependant on [a libc fix](rust-lang/libc#2708) and release.
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 24, 2022
…k-Simulacrum

espidf: fix stat

Marking as draft as currently dependant on [a libc fix](rust-lang/libc#2708) and release.
workingjubilee pushed a commit to tcdi/postgrestd that referenced this pull request Sep 15, 2022
espidf: fix stat

Marking as draft as currently dependant on [a libc fix](rust-lang/libc#2708) and release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants