-
Notifications
You must be signed in to change notification settings - Fork 92
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-2023-12-07 (#2913)
Changes required due to: - rust-lang/rust@99ac405b96 Move MetadataLoader{,Dyn} to rustc_metadata. - rust-lang/rust@c997c6d822 Add more information to stable Instance - rust-lang/rust#116915 This also fixes an issue in the `simd_shuffle` implementation that was exposed by the update. Resolves #2911 --------- Co-authored-by: Celina G. Val <celinval@amazon.com> Co-authored-by: Adrian Palacios <accorell@amazon.com>
- Loading branch information
1 parent
01bf411
commit 63af43d
Showing
13 changed files
with
94 additions
and
82 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Checking harness check_access_length_17... | ||
|
||
Failed Checks: dereference failure: pointer outside object bounds\ | ||
in check_access_length_17 | ||
Failed Checks: assumption failed\ | ||
in <usize as std::slice::SliceIndex<[Dummy]>>::get_unchecked | ||
|
||
Checking harness check_access_length_zero... | ||
|
||
Failed Checks: dereference failure: pointer outside object bounds\ | ||
in check_access_length_zero | ||
Failed Checks: assumption failed\ | ||
in <usize as std::slice::SliceIndex<[u8]>>::get_unchecked | ||
|
||
Verification failed for - check_access_length_17 | ||
Verification failed for - check_access_length_zero |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,6 @@ | ||
check_always_out_bounds::check_0.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer NULL"\ | ||
function check_always_out_bounds::check_0 | ||
|
||
check_always_out_bounds::check_0.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_0 | ||
|
||
check_always_out_bounds::check_0.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: invalid integer address"\ | ||
function check_always_out_bounds::check_0 | ||
|
||
check_always_out_bounds::check_1.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_1 | ||
|
||
check_always_out_bounds::check_2.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_2 | ||
|
||
check_always_out_bounds::check_3.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_3 | ||
|
||
check_always_out_bounds::check_4.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_4 | ||
|
||
check_always_out_bounds::check_5.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_5 | ||
|
||
check_always_out_bounds::check_6.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_6 | ||
|
||
check_always_out_bounds::check_7.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_7 | ||
|
||
check_always_out_bounds::check_8.pointer_dereference\ | ||
Status: FAILURE\ | ||
Description: "dereference failure: pointer outside object bounds"\ | ||
function check_always_out_bounds::check_8 | ||
|
||
check_always_out_bounds::check_9.cover\ | ||
Status: UNREACHABLE\ | ||
Description: "cover condition: *val == 0"\ | ||
function check_always_out_bounds::check_9 | ||
Checking harness check_always_out_bounds... | ||
|
||
Failed Checks: assumption failed | ||
in <usize as std::slice::SliceIndex<[u8]>>::get_unchecked | ||
|
||
Verification failed for - check_always_out_bounds |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright Kani Contributors | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
|
||
//! Ensure we can safely swizzle between SIMD types of different sizes. | ||
#![feature(portable_simd)] | ||
|
||
use std::simd::{simd_swizzle, u32x4, u32x8}; | ||
|
||
#[kani::proof] | ||
fn harness_from_u32x4_to_u32x4() { | ||
let a = u32x4::from_array([0, 1, 2, 3]); | ||
let b = u32x4::from_array([4, 5, 6, 7]); | ||
let r: u32x4 = simd_swizzle!(a, b, [0, 1, 6, 7]); | ||
assert_eq!(r.to_array(), [0, 1, 6, 7]); | ||
} | ||
|
||
#[kani::proof] | ||
fn harness_from_u32x4_to_u32x8() { | ||
let a = u32x4::from_array([0, 1, 2, 3]); | ||
let b = u32x4::from_array([4, 5, 6, 7]); | ||
let r: u32x8 = simd_swizzle!(a, b, [0, 1, 2, 3, 4, 5, 6, 7]); | ||
assert_eq!(r.to_array(), [0, 1, 2, 3, 4, 5, 6, 7]); | ||
} | ||
|
||
#[kani::proof] | ||
fn harness_from_u32x8_to_u32x4() { | ||
let a = u32x8::from_array([0, 1, 2, 3, 4, 5, 6, 7]); | ||
let b = u32x8::from_array([0, 1, 2, 3, 4, 5, 6, 7]); | ||
let r: u32x4 = simd_swizzle!(a, b, [0, 1, 2, 3]); | ||
assert_eq!(r.to_array(), [0, 1, 2, 3]); | ||
} |