Skip to content

Commit b6c25e5

Browse files
authored
Rollup merge of rust-lang#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](rust-lang@aa23c98) 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.
2 parents e49b8b4 + cad3c42 commit b6c25e5

File tree

1 file changed

+7
-0
lines changed
  • library/std/src/os/haiku

1 file changed

+7
-0
lines changed

Diff for: library/std/src/os/haiku/raw.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
//! Haiku-specific raw type definitions
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
4+
#![rustc_deprecated(
5+
since = "1.53.0",
6+
reason = "these type aliases are no longer supported by \
7+
the standard library, the `libc` crate on \
8+
crates.io should be used instead for the correct \
9+
definitions"
10+
)]
411
#![allow(deprecated)]
512

613
use crate::os::raw::c_long;

0 commit comments

Comments
 (0)