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

add lifetime to SourceLoader #245

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

tgolsson
Copy link
Contributor

@tgolsson tgolsson commented Jan 8, 2021

This let's you use a SourceLoader with associated lifetimes. The reason it originally didn't work to add a lifetime was that I did it for both the CompileVisitor and SourceLoader. I ended up just skipping the visitor for now which sidesteps the MacroContext problem; but it's not very nice to have the two Rc's have different constraints (though there is also much less need for the visitor to have a borrow, so... meh).

@tgolsson tgolsson added bug Something isn't working compiler Issues related to the compiler. labels Jan 8, 2021
@tgolsson tgolsson requested a review from udoprog January 8, 2021 22:14
Copy link
Collaborator

@udoprog udoprog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. If you want to change into a reference, by all means! Or merge as-is.

@tgolsson tgolsson merged commit 2af5e31 into rune-rs:main Jan 10, 2021
@udoprog udoprog added the changelog Issue has been added to the changelog label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working changelog Issue has been added to the changelog compiler Issues related to the compiler.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants