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

Update rust toolchain to 2022-05-17 #1209

Merged
merged 6 commits into from
May 25, 2022

Conversation

celinval
Copy link
Contributor

@celinval celinval commented May 19, 2022

Description of changes:

Update rust toolchain to 2022-05-17 and fix issues related to the upgrade. Relevant changes to the toolchain:

Resolved 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

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

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.
@celinval celinval requested a review from adpaco-aws May 19, 2022 22:39
@celinval celinval requested a review from a team as a code owner May 19, 2022 22:39
Copy link
Contributor

@adpaco-aws adpaco-aws left a 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.

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.
Copy link
Contributor

@adpaco-aws adpaco-aws left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@zhassan-aws zhassan-aws 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.

@celinval celinval merged commit 73e449c into model-checking:main May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sprint 2022-05-31: Update rust toolchain version
3 participants