-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
std::os::fd module missing on Hermit #126198
Copy link
Copy link
Closed
Labels
A-crossArea: Cross compilationArea: Cross compilationC-bugCategory: This is a bug.Category: This is a bug.O-hermitOperating System: HermitOperating System: HermitT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-crossArea: Cross compilationArea: Cross compilationC-bugCategory: This is a bug.Category: This is a bug.O-hermitOperating System: HermitOperating System: HermitT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
With
--target x86_64-unknown-hermit.I expected to see this happen: code to compile
Instead, this happened: failed to compile with
Looking at the relevant code:
rust/library/std/src/os/mod.rs
Lines 163 to 164 in 212841e
It seems
hermitis imply missed from thecfg. Inside of thefdmodule there is already code for hermit:rust/library/std/src/os/fd/raw.rs
Lines 18 to 29 in 212841e
I think this is just an oversight, but I since I don't develop for Hermit I'm not sure. (I hit this while updating Mio)
/cc @stlankes
Meta
rustc --version --verbose: