Skip to content

Doesn't compile on latest macOS nightly #142

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
CryZe opened this issue Jun 24, 2024 · 4 comments
Closed

Doesn't compile on latest macOS nightly #142

CryZe opened this issue Jun 24, 2024 · 4 comments

Comments

@CryZe
Copy link

CryZe commented Jun 24, 2024

rust version 1.81.0-nightly (bcf94dec5 2024-06-23)

Error:

error: expected one of `!` or `::`, found keyword `static`
Error:  --> /Users/runner/work/livesplit-core/livesplit-core/target/aarch64-apple-darwin/debug/build/libproc-b1136142c2e7f016/out/osx_libproc_bindings.rs:3:11
  |
3 | rewriting static
  |           ^^^^^^ expected one of `!` or `::`

error[E0432]: unresolved import `crate::osx_libproc_bindings::proc_bsdinfo`
Error:  --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libproc-0.14.8/src/libproc/bsd_info.rs:3:9
  |
3 | pub use crate::osx_libproc_bindings::proc_bsdinfo as BSDInfo;
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `proc_bsdinfo` in `osx_libproc_bindings`
  |
help: consider importing this struct instead
  |
3 | pub use libc::proc_bsdinfo as BSDInfo;
  |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[...]

Seems like bindgen fails and it generates some garbage rs file instead.

@CryZe
Copy link
Author

CryZe commented Jun 24, 2024

Seems like you have daily builds in your CI, so this should reproduce for you on today's run as well. I specifically also didn't see this problem in the 2024-06-23 build of the Rust compiler.

@CryZe
Copy link
Author

CryZe commented Jun 24, 2024

Seems to be caused by this: rust-lang/rustfmt#6210

@CryZe
Copy link
Author

CryZe commented Jun 24, 2024

Closing because they already fixed it and it should work again tomorrow.

@CryZe CryZe closed this as completed Jun 24, 2024
@andrewdavidmackenzie
Copy link
Owner

Let's see!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants