Skip to content

Commit 028b235

Browse files
committed
Update toolchain to 2/2
- unsafe binders, c.f. rust-lang/rust#130514
1 parent a287dee commit 028b235

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

kani-compiler/src/kani_middle/points_to/points_to_analysis.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ impl<'tcx> PointsToAnalysis<'_, 'tcx> {
525525
Rvalue::Use(operand)
526526
| Rvalue::ShallowInitBox(operand, _)
527527
| Rvalue::Cast(_, operand, _)
528-
| Rvalue::Repeat(operand, ..) => self.successors_for_operand(state, operand),
528+
| Rvalue::Repeat(operand, ..)
529+
| Rvalue::WrapUnsafeBinder(operand, _) => self.successors_for_operand(state, operand),
529530
Rvalue::Ref(_, _, ref_place) | Rvalue::RawPtr(_, ref_place) => {
530531
// Here, a reference to a place is created, which leaves the place
531532
// unchanged.

kani-compiler/src/kani_middle/points_to/points_to_graph.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ impl<'tcx> PointsToGraph<'tcx> {
163163
| ProjectionElem::Subslice { .. }
164164
| ProjectionElem::Downcast(..)
165165
| ProjectionElem::OpaqueCast(..)
166-
| ProjectionElem::Subtype(..) => {
166+
| ProjectionElem::Subtype(..)
167+
| ProjectionElem::UnwrapUnsafeBinder(..) => {
167168
/* There operations are no-ops w.r.t aliasing since we are tracking it on per-object basis. */
168169
}
169170
}

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
[toolchain]
5-
channel = "nightly-2025-02-01"
5+
channel = "nightly-2025-02-02"
66
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]

0 commit comments

Comments
 (0)