-
Notifications
You must be signed in to change notification settings - Fork 116
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
Soundness issue when borrowing Lua in a callback #33
Comments
Just to clarify: This example in itself is still fine, the issue is that the borrow of |
Thanks for the clarification, that is exactly right. This is discussed further in #32 for anybody following along, but we should probably discuss it further here. So, the proposed solution is simply to move callbacks back to 'static lifetime, and I don't see really any other way of solving this, but it sounds like you might have some ideas? |
Let's go back to |
Currently this compiles, and that is a problem because
lua
does not have a stable address. Closures should go back to having a 'static lifetime.The text was updated successfully, but these errors were encountered: