-
Notifications
You must be signed in to change notification settings - Fork 99
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
Toolchain update 06-01-2025 #3814
Toolchain update 06-01-2025 #3814
Conversation
Could you also include the information about related upstream commits? |
Each commit message contains the link to the upstream change |
47ca3ca
to
48b03f0
Compare
The original SourceRegion was moved to the llvm backend and made private by rust-lang/rust#134497. We implement our own local version of it to maintain our handling of SourceRegion for coverage properties.
Propagated from rust-lang/rust#133702. Empty enums now have `Variants::Empty` as variants instead of `Variants::Single{ index: None }`.
Rustc has started implementing `UnsafeBinder`: - rust-lang/rust#134625 - rust-lang/rust#130516 Only the enums variants have been added for now, semantics is TBD.
Propagated form rust-lang/rust#134330. `RValue::Len(place)` is still present in StableMIR, so we translate it back to MIR as `PtrMetadata(Copy(place))`.
Propagated from rust-lang/rust#134757.
77b4ce0
to
cc4abe6
Compare
All tests passing now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3cb70d2
to
cc4abe6
Compare
Reverting from using https://github.com/Zalathar/rust/blob/aced4dcf1047aab08b769b34fae9d4ba7de87f04/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen/spans.rs#L1[…]C33 1 |// Copyright Kani Contributors
2 |// SPDX-License-Identifier: Apache-2.0 OR MIT
3 |
4 |//! Checks that `check_assert` is fully covered. At present, the coverage for
5 |//! this test reports an uncovered single-column region at the end of the `if`
6 |//! statement: <https://github.com/model-checking/kani/issues/3455>
7 |
8 |#[kani::proof]
9 |fn check_assert() {
10| let x: u32 = kani::any_where(|val| *val == 5);
11| if x > 3 {
12| assert!(x > 4);
13| }
14|}
with |
6ff5f3a
to
f9134c8
Compare
## What's Changed * Package Docker release step: ensure compiler is installed by @tautschnig in #3789 * Improve `--jobs` UI by @carolynzech in #3790 * Update kissat to v4.0.1 by @remi-delmas-3000 in #3791 * Automatic cargo update to 2024-12-23 by @github-actions in #3792 * Bump tests/perf/s2n-quic from `0b3f892` to `a54686e` by @dependabot in #3793 * Upgrade toolchain to nightly-2024-12-18 by @zhassan-aws in #3794 * Automatic cargo update to 2024-12-30 by @github-actions in #3800 * fix: clippy by @ShoyuVanilla in #3806 * Update dependencies (02.01.2025). by @remi-delmas-3000 in #3809 * Update charon submodule by @zhassan-aws in #3801 * Upgrade toolchain to 2024-12-19 by @zhassan-aws in #3810 * Automatic cargo update to 2025-01-06 by @github-actions in #3812 * Bump tests/perf/s2n-quic from `a54686e` to `ac52a48` by @dependabot in #3813 * Generate contracts of dependencies as assertions by @carolynzech in #3802 * Fix hanging command in `std-analysis.sh` by @carolynzech in #3818 * Add UB checks for ptr_offset_from* intrinsics by @celinval in #3757 * Toolchain update 06-01-2025 by @remi-delmas-3000 in #3814 * Automatic toolchain upgrade to nightly-2025-01-07 by @github-actions in #3820 * Include manifest-path when checking if packages are in the workspace by @qinheping in #3819 ## New Contributors * @ShoyuVanilla made their first contribution in #3806 **Full Changelog**: kani-0.57.0...kani-0.58.0 --------- Co-authored-by: Celina G. Val <[email protected]>
Please review commit by commit, as each commit propagates an upstream change:
SourceRegion
was moved from MIR to the LLVM backend and made private, I recreated the type and functionality locally to preserve our handling of regions in coverage assertions,RValue::Len(place)
from MIR (still present in stable MIR, so I usedPtrMetadata(Copy(place))
to translate Len(place) back from StableMIR to MIR).UnsafeBinder
enum variant (WIP in rustc, no clear semantics yet, left as TODO)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.