-
Notifications
You must be signed in to change notification settings - Fork 141
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
Relaxing 'static
lifetime bounds?
#311
Comments
Yes, I'm open to a PR that removes this bound. Last time I recall messing with this (a while ago), it was a little tricky. But if you can remove those bounds without breaking the API go for it. |
Hi @robert-chiniquy I'd like to take a stab at this, but I need some more context on your use case. Say we make it Also if we put an
The added lifetime param is fixable within the crate (well I'm still figuring out how to), but it also breaks the public API. Maybe we can do something like |
Hi @Evan-Zhao ! Awesome to hear you're thinking about this. I've been kind of stumped myself, this quickly became harder than I expected to extricate. I like your The |
I see, makes a lot of sense. I was looking at the codebase and happy to find out the How about I open a PR today, and @robert-chiniquy would you take a look at that PR, and make your use case into a test case that practices non-static lifetime in the rewriter? Then we'll see if @mwillsey likes it. Also I decided to name it |
|
Just ran into this one trying to pass an object (which impl's
Language
) holding a non-static-lifetime reference to this method:Of course, this pops up in more places than just here. I know it's a big task. Is this already on your radar, or something you'd welcome a PR for?
The text was updated successfully, but these errors were encountered: