-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Relax some restrictions on validators #1998
Conversation
This PR has grown beyond the simple
|
b596f31
to
8dd3677
Compare
@CreepySkeleton Can you please rebase this? |
I think I'll extract lifetime renaming toa separate PR and then rebase this one onto that. |
0a1d207
to
1fddb8f
Compare
ping @pksunkara Pfff, what can I say? Lifetimes in tandem with I have also found a number of wrong tests thanks to the new assert structure (they cover more cases now) which is a point in favor of the rewrite. Otherwise, I think this is ready and can be merged. |
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.
bors r+
Merge conflict. |
Also relaxes 'static restriction on validators.
1fddb8f
to
39fadbf
Compare
bors r=pksunkara |
Build succeeded: |
Also relaxes 'static restriction on validators.
Closes #1771
This PR also relaxes the
'static
restriction on the validator fn, thus allowing user to use proper closures that capture some context as validators. This should address (and potentially close) #572.