-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the rust toolchain to
nightly-2022-05-03
(#1181)
* Update rust toolchain to nightly-2022-05-03 This compiles but regression is failing due to unimplemented statement. * Handle change to Box<T> structure Box<T> now users NonNull<T> instead of raw pointer. * Handle new statement kind Deinit We codegen an assignment to non-det value per documentation. See more information here: - rust-lang/rust#95125 * Fix discriminant computation After the merge, the previous wrapping sub logic was triggering a panic due to u128 -> i64 conversion. There were also other overflow issues when trying to convert the `niche_value` to unsigned. For now, I'm disabling the coversion check which I believe is too strict. We should consider implementing a more flexible check later that can be controlled by the user without affecting the internal compiler codegen. * Address PR comments: - Improve comments. - Remove wrong cast to i64. - Fix statement location. - Create util function to create unsigned type.
- Loading branch information
Showing
16 changed files
with
258 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.