Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

macOS-enabled tests are failing #2169

Closed
adamlesinski opened this issue Feb 24, 2022 · 1 comment
Closed

macOS-enabled tests are failing #2169

adamlesinski opened this issue Feb 24, 2022 · 1 comment

Comments

@adamlesinski
Copy link

Many of the macOS-only tests in tests/expectations are failing. Using rustc 1.58.1. Here is one example:

error[E0310]: the parameter type `ObjectType` may not live long enough
   --> /Users/adamlesinski/workspace/rust-bindgen/tests/expectations/tests/libclang-4/objc_template.rs:63:9
    |
56  | pub trait IFooMultiGeneric<KeyType, ObjectType>:
    |                                     ---------- help: consider adding an explicit lifetime bound...: `ObjectType: 'static`
...
63  |         msg_send!(*self, objectForKey: key)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `*mut ObjectType` will meet its required lifetime bounds...
    |
note: ...that is required by this bound
   --> /Users/adamlesinski/.cargo/registry/src/github.com-1ecc6299db9ec823/objc-0.2.7/src/message/mod.rs:177:51
    |
177 |         where T: Message, A: MessageArguments, R: Any {
    |                                                   ^^^
    = note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)
@kulp
Copy link
Member

kulp commented Feb 25, 2022

Thanks for the report. It looks like you found #1954, which has been broken for a while.

@kulp kulp closed this as completed Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants