Skip to content

apple: Disable the mach.h header in tests - #5464

Open
tgross35 wants to merge 1 commit into
rust-lang:mainfrom
tgross35:remove-mach
Open

apple: Disable the mach.h header in tests#5464
tgross35 wants to merge 1 commit into
rust-lang:mainfrom
tgross35:remove-mach

Conversation

@tgross35

@tgross35 tgross35 commented Sep 4, 2026

Copy link
Copy Markdown
Member

This was added in f3b2c50 ("Fix iOS, tvOS, watchOS and visionOS tests") but the mach API has been deprecated, so we shouldn't need it.

This was added in f3b2c50 ("Fix iOS, tvOS, watchOS and visionOS
tests") but the mach API has been deprecated, so we shouldn't need it.

Fixes: f3b2c50 ("Fix iOS, tvOS, watchOS and visionOS tests")
@tgross35

tgross35 commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

@madsmtm any thoughts about what to do here? I don't know whether these should be deprecated as part of mach, or if that header has more.

Failure list:

  • thread_policy_set
  • thread_info
  • mach_error_string
  • mach_error_t
  • vm_allocate
  • vm_deallocate
  • host_statistics64
  • host_processor_info
  • task_for_pid
  • task_info
  • task_create
  • task_terminate
  • task_threads
  • host_statistics

@madsmtm

madsmtm commented Sep 4, 2026

Copy link
Copy Markdown
Member

All of the APIs you've listed there are indeed Mach APIs.

I haven't followed the history of why libc decided to deprecate Mach APIs, but if that is indeed the plan, then these should probably live in mach2.

Did that answer the question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants