-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Allow to have access to imports in block calls #991
Conversation
@@ -60,7 +60,7 @@ impl<'a> Generator<'a> { | |||
} | |||
|
|||
// Takes a Context and generates the relevant implementations. | |||
pub(crate) fn build(mut self, ctx: &'a Context<'_>) -> Result<String, CompileError> { | |||
pub(crate) fn build(mut self, ctx: &Context<'a>) -> Result<String, CompileError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I relaxed the lifetime rules as they were too strict for my use case. Like this we can pass a temporary Context
as long as it points to the same data.
77d3805
to
ef2dd67
Compare
Solved clippy lints as well. Hopefully with this one, I'll have everything I need to end the switch from |
ef2dd67
to
1a4b7f4
Compare
As discussed in #989, variables defined outside a block should not be accessible inside a block. |
Ah I need #986 to be merged first for this ui test to work. ^^' |
1a4b7f4
to
77a570e
Compare
Rebased. It's now ready for review! |
77a570e
to
2dfff27
Compare
2dfff27
to
e4040a4
Compare
Since you approved, merging. Thanks for the reviews! |
Fixes #989.