Skip to content

Commit

Permalink
Auto merge of #2539 - JohnTitor:suggest-mach2-instead, r=JohnTitor
Browse files Browse the repository at this point in the history
Suggest the `mach2` crate instead

cc #2286
r? `@ghost`
  • Loading branch information
bors committed Nov 16, 2021
2 parents 69b86ab + efc0a9e commit a8d7606
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/macros.rs
Expand Up @@ -307,13 +307,13 @@ macro_rules! align_const {
)*)
}

// This macro is used to deprecate items that should be accessed via the mach crate
// This macro is used to deprecate items that should be accessed via the mach2 crate
#[allow(unused_macros)]
macro_rules! deprecated_mach {
(pub const $id:ident: $ty:ty = $expr:expr;) => {
#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
#[allow(deprecated)]
pub const $id: $ty = $expr;
Expand All @@ -328,7 +328,7 @@ macro_rules! deprecated_mach {
(pub type $id:ident = $ty:ty;) => {
#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
#[allow(deprecated)]
pub type $id = $ty;
Expand Down
18 changes: 9 additions & 9 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -254,7 +254,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_timebase_info {
pub numer: u32,
Expand Down Expand Up @@ -522,7 +522,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_header {
pub magic: u32,
Expand All @@ -536,7 +536,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_header_64 {
pub magic: u32,
Expand Down Expand Up @@ -4790,9 +4790,9 @@ extern "C" {
newp: *mut ::c_void,
newlen: ::size_t,
) -> ::c_int;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn mach_absolute_time() -> u64;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
#[allow(deprecated)]
pub fn mach_timebase_info(info: *mut ::mach_timebase_info) -> ::c_int;
pub fn mach_host_self() -> mach_port_t;
Expand Down Expand Up @@ -5062,14 +5062,14 @@ extern "C" {
pub fn brk(addr: *const ::c_void) -> *mut ::c_void;
pub fn sbrk(increment: ::c_int) -> *mut ::c_void;
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_image_count() -> u32;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
#[allow(deprecated)]
pub fn _dyld_get_image_header(image_index: u32) -> *const mach_header;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_get_image_vmaddr_slide(image_index: u32) -> ::intptr_t;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_get_image_name(image_index: u32) -> *const ::c_char;

pub fn posix_spawn(
Expand Down

0 comments on commit a8d7606

Please sign in to comment.