-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for RawOsError #107792
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(raw_os_error_ty)]This is a tracking issue for the raw OS error type alias, used in
io::Error::raw_os_errorandio::Error::from_raw_os_error(both are stable APIs).stdused to assume that the OS error type (return byerrnoand such) is ani32. This is however not the case on platforms like UEFI (which usesusize). To ensure idiomatic and convenient handling of native errors without loosing information, theRawOsErrortype is introduced to allow future ports of the standard library to use the correct error type for their respective platform. As this does not change the error type on already supported targets, this is a backwards-compatible change. Current software can still usei32directly while theRawOsErrortype alias is unstable. However, this feature should probably be stabilized before ports using a different type are merged, to allow software to be more easily ported.Public API
Steps / History
Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩