Skip to content

Commit

Permalink
Upgrade toolchain to 2023-10-04
Browse files Browse the repository at this point in the history
Requires changes to support rust-lang/rust@3148e6a9933b
(subtyping_projections)
  • Loading branch information
tautschnig committed Oct 4, 2023
1 parent f504466 commit e4432f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,15 @@ impl<'tcx> GotocCtx<'tcx> {
self,
)
}
ProjectionElem::OpaqueCast(ty) => ProjectedPlace::try_new(
before.goto_expr.cast_to(self.codegen_ty(ty)),
TypeOrVariant::Type(ty),
before.fat_ptr_goto_expr,
before.fat_ptr_mir_typ,
self,
),
ProjectionElem::OpaqueCast(ty) | ProjectionElem::Subtype(ty) => {
ProjectedPlace::try_new(
before.goto_expr.cast_to(self.codegen_ty(self.monomorphize(ty))),
TypeOrVariant::Type(ty),
before.fat_ptr_goto_expr,
before.fat_ptr_mir_typ,
self,
)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

[toolchain]
channel = "nightly-2023-10-03"
channel = "nightly-2023-10-04"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]

0 comments on commit e4432f3

Please sign in to comment.