-
Notifications
You must be signed in to change notification settings - Fork 107
fix: unsoundness issue caught in recent nightly #712
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
fix: unsoundness issue caught in recent nightly #712
Conversation
I have already created issue at rust-lang/rust#122230 which informs it is expected breakage so this PR fixes issue early for unsoundess. For more information visit issue |
Signed-off-by: Saurav Sharma <[email protected]>
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.
Thanks for catching this.
We originally wrote it how we did because returning a static lifetime caused some dependencies builds to break due to something around lifetime inference, but (at least according to CI) this seems to work.
@john-h-kastner-aws I have removed some unnecessary lifetimes to solve above issue. All lifetimes are not required to create above changed struct. This solve issue by removing lifetime altogether |
I believe that would be a breaking change for any user who references the types with explicit lifetimes. We can take that change on |
Ya you are correct. I think I will only add original changes to this PR and create new PR for next breaking changes |
@john-h-kastner-aws I have reverted to original fix in this PR and created another PR #715 for breaking change |
Signed-off-by: Saurav Sharma <[email protected]> Signed-off-by: Kesha Hietala <[email protected]>
Signed-off-by: Saurav Sharma <[email protected]>
Signed-off-by: Saurav Sharma <[email protected]> Signed-off-by: John Kastner <[email protected]> Co-authored-by: Saurav Sharma <[email protected]>
Description of changes
Return static lifetime for
ValidationError
andValidationWarning
so lifetime will live enough. 3.1.0 is not working with latest nightly version this PR fix that issue by returning static lifetime instead of custom lifetimeLatest nightly error message
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
.I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):Disclaimer
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.