Skip to content

Doesn’t build in recent Nightly, "anonymous bound region BrAnon(0) in return but not args" #40

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

Closed
SimonSapin opened this issue Jul 31, 2017 · 7 comments

Comments

@SimonSapin
Copy link

See rust-lang/rust#43567.

Adding a lifetime parameter to a few function declarations in src/ffi/xproto.rs like this:

-    pub fn xcb_list_extensions_names_iterator (R: *const xcb_list_extensions_reply_t)
-            -> xcb_str_iterator_t;
+    pub fn xcb_list_extensions_names_iterator<'a> (R: *const xcb_list_extensions_reply_t)
+            -> xcb_str_iterator_t<'a>;

… fixes the issue, but that file is .gitignore’d and generated. I looked at rs_client.py a bit but didn’t find an easy way to make it generate that code.

@nox
Copy link

nox commented Aug 10, 2017

@rtbo Could we get an answer on this please?

@SimonSapin
Copy link
Author

SimonSapin commented Aug 10, 2017

#41 fixes this.

rtbo added a commit that referenced this issue Aug 13, 2017
Introduce types_with_lifetime array that keep tracks
of all types with lifetime in a module
@rtbo
Copy link
Collaborator

rtbo commented Aug 13, 2017

@SimonSapin could you test a37d1fa?
What it does is assigning lifetimes as your 1st comment hereabove.
It builds with nightly.

@SimonSapin
Copy link
Author

@rtbo I made a "try" build with this branch and all tests pass. Could you publish this as version 0.7.7? Thank you!

@rtbo
Copy link
Collaborator

rtbo commented Aug 15, 2017

done!

@rtbo rtbo closed this as completed Aug 15, 2017
rtbo added a commit that referenced this issue Aug 15, 2017
Introduce types_with_lifetime array that keep tracks
of all types with lifetime in a module
@quininer
Copy link

Can you also publish 0.8.1?

@rtbo
Copy link
Collaborator

rtbo commented Aug 15, 2017

@quininer yes will do.

mathphreak referenced this issue in mathphreak/rust-clipboard Aug 31, 2017
This includes [an xcb fix](https://github.com/rtbo/rust-xcb/issues/40) that fixes compilation on rustc 1.21.0-beta.1.
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

4 participants