From 5ed75f36207e1a20dbc218934cbb534c94f269b8 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 18 Nov 2024 14:31:01 -0500 Subject: [PATCH] apple: Mark `mach_task_self` as deprecated These were already removed on `main` in 56d665c ("macOs various updates"). --- src/unix/bsd/apple/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 03d0ef5aa7dea..e36375d5bac48 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -6657,6 +6657,7 @@ extern "C" { out_processor_infoCnt: *mut mach_msg_type_number_t, ) -> ::kern_return_t; + #[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")] pub static mut mach_task_self_: ::mach_port_t; pub fn task_for_pid( host: ::mach_port_t, @@ -6774,6 +6775,8 @@ extern "C" { ) -> ::c_int; } +#[allow(deprecated)] +#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")] pub unsafe fn mach_task_self() -> ::mach_port_t { mach_task_self_ }