Skip to content

Commit

Permalink
Rollup merge of #83215 - bstrie:dephaikuraw, r=joshtriplett
Browse files Browse the repository at this point in the history
Deprecate std::os::haiku::raw, which accidentally wasn't deprecated

In early 2016, all `std::os::*::raw` modules [were deprecated](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.
  • Loading branch information
Dylan-DPC authored Mar 19, 2021
2 parents e49b8b4 + cad3c42 commit b6c25e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/std/src/os/haiku/raw.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit b6c25e5

Please sign in to comment.