Skip to content

Commit e757788

Browse files
authored
Merge pull request #4095 from tgross35/mach_task_self
[0.2] apple: Mark mach_task_self as deprecated
2 parents 8464aec + 5ed75f3 commit e757788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6657,6 +6657,7 @@ extern "C" {
66576657
out_processor_infoCnt: *mut mach_msg_type_number_t,
66586658
) -> ::kern_return_t;
66596659

6660+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
66606661
pub static mut mach_task_self_: ::mach_port_t;
66616662
pub fn task_for_pid(
66626663
host: ::mach_port_t,
@@ -6774,6 +6775,8 @@ extern "C" {
67746775
) -> ::c_int;
67756776
}
67766777

6778+
#[allow(deprecated)]
6779+
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
67776780
pub unsafe fn mach_task_self() -> ::mach_port_t {
67786781
mach_task_self_
67796782
}

0 commit comments

Comments
 (0)