about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-03-19 15:03:26 +0100
committerGitHub <noreply@github.com>2021-03-19 15:03:26 +0100
commit675ae2e366741caaa90fc4719cd0a8cee377abc3 (patch)
tree9396264e5f3e0bfa11c7d9f6f96dd5a938ad0ec5
parent359124230f0433f6da55a94432a6373666d9ceec (diff)
parentcad3c4241d2f2ebbe5a5924d2e93e670d5b9a35a (diff)
downloadrust-675ae2e366741caaa90fc4719cd0a8cee377abc3.tar.gz
rust-675ae2e366741caaa90fc4719cd0a8cee377abc3.zip
Rollup merge of #83215 - bstrie:dephaikuraw, r=joshtriplett
Deprecate std::os::haiku::raw, which accidentally wasn't deprecated

In early 2016, all `std::os::*::raw` modules [were deprecated](https://github.com/rust-lang/rust/commit/aa23c98450063992473d40d707273903f8a3937d) in accordance with [RFC 1415](https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md). However, at this same time support for Haiku was being added to libstd, landing shortly after the aforementioned commit, and due to some crossed wires a `std::os::haiku::raw` module was added and was not marked as deprecated.

I have been in correspondence with the author of the Haiku patch, ````@nielx,```` who has confirmed that this was simply an oversight and that the definitions from the libc crate should be preferred instead.
-rw-r--r--library/std/src/os/haiku/raw.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/std/src/os/haiku/raw.rs b/library/std/src/os/haiku/raw.rs
index 0d7e70b6b35..48117d288ae 100644
--- a/library/std/src/os/haiku/raw.rs
+++ b/library/std/src/os/haiku/raw.rs
@@ -1,6 +1,13 @@
 //! Haiku-specific raw type definitions
 
 #![stable(feature = "raw_ext", since = "1.1.0")]
+#![rustc_deprecated(
+    since = "1.53.0",
+    reason = "these type aliases are no longer supported by \
+              the standard library, the `libc` crate on \
+              crates.io should be used instead for the correct \
+              definitions"
+)]
 #![allow(deprecated)]
 
 use crate::os::raw::c_long;