-
Notifications
You must be signed in to change notification settings - Fork 746
cargo test
is broken despite specified --rust-target 1.47
#2277
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
Comments
some tests have the |
Additionally I couldn't even get bindgen to compile with rust 1.45 due to clap requiring a higher version. |
@pvdrz This is about the generated code by
|
@heinrich5991 oh ok this is an interesting point. The MSRV to run bindgen is 1.57 but I'm not sure if generating code for an older rust target is supported or not. Deferring to @emilio for this one. Even if tests are broken, bindgen should be able to generate valid code for any A possible way to mitigate this would be asking contributors to always include the |
Yeah, generally it should be supported. That said, we should consider start deprecating some of the older rust targets. This bug is valid but my guess is that specially since it only affects tests, it's relatively low priority. |
Maybe we could add extra CI jobs for each rust target to guarantee that this never happens again, not sure if the increased run time is worth it though. |
I think it could be worthwhile if it were run only upon releases; but running on every PR I tend to agree might become excessive. Maybe a middle ground would be running them only on |
Solving this issue is proving to be harder than I expected. There are several issues and I don't have a clear solution for them:
|
#2203 caused
std::ptr::addr_of!
to be emitted in tests, which is only available since 1.51.Do tests fall under the guarantee? It'd be nice if this was called out in the changelog, if it was intentional.
The text was updated successfully, but these errors were encountered: