-
Notifications
You must be signed in to change notification settings - Fork 92
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
Update rust toolchain to 2022-05-17 #1209
Conversation
Status: Compilation succeeds but regression fails due to new intrinsic. Relevant changes: - rust-lang/rust#95837 - rust-lang/rust#95562 - rust-lang/rust#96883
This new intrinsic is used in many different places in the standard library and it was failing some tests for vectors.
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.
Looks great! My main comment has to do with the order for checks in ptr_offset_from_unsigned
, the rest are minor comments.
tests/kani/Intrinsics/PtrOffsetFromUnsigned/check_unsigned_ptr_offset_from.rs
Show resolved
Hide resolved
tests/expected/intrinsics/ptr_offset_from_unsigned/check_invariant_violation.rs
Show resolved
Hide resolved
Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
- Fix order of checks. - Improve error message. - Add comments to the new tests.
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!
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.
Looks good.
Description of changes:
Update rust toolchain to 2022-05-17 and fix issues related to the upgrade. Relevant changes to the toolchain:
sub_ptr
on pointers (theusize
version ofoffset_from
) rust-lang/rust#95837Resolved issues:
Resolves #1206
Call-outs:
I had to implement the new intrinsic ptr_offset_from_unsigned. This new intrinsic is used in many different places in the standard library and it was failing some tests for vectors.
The intrinsic implementation was introduced in the second commit of this PR.
Testing:
How is this change tested? New test + regression
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.