about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-04 08:04:00 +0000
committerbors <bors@rust-lang.org>2023-09-04 08:04:00 +0000
commitce798a52c30528366764a5993783b4e9ccfa46ee (patch)
tree8c56f3780a40bff94caa6458f4790ff5d94290a1 /library/std/src/sys
parentb14b0745ad4913a21f00795738c047d0107dff4a (diff)
parent56df6b81898efcdf4d486eb9baa16e1273f3c08e (diff)
downloadrust-ce798a52c30528366764a5993783b4e9ccfa46ee.tar.gz
rust-ce798a52c30528366764a5993783b4e9ccfa46ee.zip
Auto merge of #115493 - Ayush1325:raw-os-error, r=workingjubilee
Move RawOsError defination to sys

This was originally a part of https://github.com/rust-lang/rust/pull/105861, but I feel it should be its own PR since the raw os error is still unstable.
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/mod.rs b/library/std/src/sys/mod.rs
index beea3f23c2d..63bd783746b 100644
--- a/library/std/src/sys/mod.rs
+++ b/library/std/src/sys/mod.rs
@@ -110,3 +110,5 @@ pub fn log_wrapper<F: Fn(f64) -> f64>(n: f64, log_fn: F) -> f64 {
 pub fn log_wrapper<F: Fn(f64) -> f64>(n: f64, log_fn: F) -> f64 {
     log_fn(n)
 }
+
+pub type RawOsError = i32;