Skip to content

Commit 4d44be3

Browse files
committed
Update mach-related deprecation notices
These were all removed in `main` in e425743 ("Remove mach-related items") but don't currently have notices. Fix that here. I am not sure whether the _NS constant should be deprecated since it doesn't appear to be in `mach`.
1 parent 6b61531 commit 4d44be3

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,7 @@ s! {
308308
pub ai_next: *mut addrinfo,
309309
}
310310

311-
#[deprecated(
312-
since = "0.2.55",
313-
note = "Use the `mach2` crate instead",
314-
)]
311+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
315312
pub struct mach_timebase_info {
316313
pub numer: u32,
317314
pub denom: u32,
@@ -671,10 +668,7 @@ s! {
671668
pub cr_groups: [::gid_t;16]
672669
}
673670

674-
#[deprecated(
675-
since = "0.2.55",
676-
note = "Use the `mach2` crate instead",
677-
)]
671+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
678672
pub struct mach_header {
679673
pub magic: u32,
680674
pub cputype: cpu_type_t,
@@ -685,10 +679,7 @@ s! {
685679
pub flags: u32,
686680
}
687681

688-
#[deprecated(
689-
since = "0.2.55",
690-
note = "Use the `mach2` crate instead",
691-
)]
682+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
692683
pub struct mach_header_64 {
693684
pub magic: u32,
694685
pub cputype: cpu_type_t,
@@ -5944,7 +5935,9 @@ extern "C" {
59445935
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59455936
#[allow(deprecated)]
59465937
pub fn mach_timebase_info(info: *mut ::mach_timebase_info) -> ::c_int;
5938+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59475939
pub fn mach_host_self() -> mach_port_t;
5940+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
59485941
pub fn mach_thread_self() -> mach_port_t;
59495942
pub fn pthread_once(
59505943
once_control: *mut ::pthread_once_t,
@@ -6603,6 +6596,8 @@ extern "C" {
66036596
pub fn CCRandomGenerateBytes(bytes: *mut ::c_void, size: ::size_t) -> ::CCRNGStatus;
66046597
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;
66056598

6599+
// FIXME(1.0): should this actually be deprecated?
6600+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66066601
pub fn _NSGetExecutablePath(buf: *mut ::c_char, bufsize: *mut u32) -> ::c_int;
66076602

66086603
// crt_externs.h
@@ -6611,6 +6606,7 @@ extern "C" {
66116606
pub fn _NSGetEnviron() -> *mut *mut *mut ::c_char;
66126607
pub fn _NSGetProgname() -> *mut *mut ::c_char;
66136608

6609+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66146610
pub fn mach_vm_map(
66156611
target_task: ::vm_map_t,
66166612
address: *mut ::mach_vm_address_t,

0 commit comments

Comments
 (0)