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

Upgrade rust toolchain to 2022-11-20 #1927

Merged
merged 11 commits into from
Nov 29, 2022

Conversation

zhassan-aws
Copy link
Contributor

Description of changes:

Upgrade rust toolchain to 2022-11-20.

Resolved issues:

Resolves #1923

Related RFC:

Optional #ISSUE-NUMBER.

Call-outs:

This causes a debug_assert in ProjectPlace::try_new to fail. I've disabled the debug assert which will make codegen produce a codegen_unimplemented.

Testing:

  • How is this change tested? Existing regressions

  • 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.

@zhassan-aws zhassan-aws requested a review from a team as a code owner November 22, 2022 00:43
Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. I have a couple of questions.

@@ -176,7 +176,9 @@ impl<'tcx> ProjectedPlace<'tcx> {
goto_expr, expr_ty, ty_from_mir
);
warn!("{}", msg);
debug_assert!(false, "{}", msg);
// TODO: this assertion fails on firecracker with the rust 2022-11-20 toolchain
Copy link
Contributor

Choose a reason for hiding this comment

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

😕 Do you know why?

@@ -53,6 +53,7 @@ impl<'tcx> GotocCtx<'tcx> {
self.current_fn().mir().var_debug_info.iter().find(|info| match info.value {
VarDebugInfoContents::Place(p) => p.local == *l && p.projection.len() == 0,
VarDebugInfoContents::Const(_) => false,
VarDebugInfoContents::Composite { .. } => todo!(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please create an issue and add more details there? I wonder if we should really crash in this case.

@zhassan-aws zhassan-aws merged commit bb50371 into model-checking:main Nov 29, 2022
@zhassan-aws zhassan-aws deleted the rust-toolchain-2022-11-20 branch November 29, 2022 17:02
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.

Update rust toolchain version for Kani 0.16
3 participants