-
Notifications
You must be signed in to change notification settings - Fork 121
Upgrade Rust toolchain to 2025-06-16 #4157
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
Merged
tautschnig
merged 5 commits into
model-checking:main
from
tautschnig:toolchain-2025-06-16-manual
Jun 16, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4f9d8c3
Upgrade Rust toolchain to 2025-06-16
tautschnig d1f9e7c
Merge remote-tracking branch 'origin/main' into toolchain-2025-06-16-…
tautschnig a1cad6d
Simplify test
tautschnig 57a0140
Fix syntax
tautschnig 6298c98
Merge remote-tracking branch 'origin/main' into toolchain-2025-06-16-…
tautschnig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
// Copyright Kani Contributors | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
|
||
// Check that we get the expected results for the `align_of` intrinsic | ||
// with common data types | ||
#![feature(core_intrinsics)] | ||
use std::intrinsics::align_of; | ||
|
||
struct MyStruct {} | ||
|
||
enum MyEnum {} | ||
|
||
#[kani::proof] | ||
fn main() { | ||
// for the following types x86_64 and aarch64 agree on the alignment; see | ||
// AlignOfVal/align_of_fat_ptr.rs for some example of where they don't agree | ||
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] | ||
{ | ||
// Scalar types | ||
assert!(align_of::<i8>() == 1); | ||
assert!(align_of::<i16>() == 2); | ||
assert!(align_of::<i32>() == 4); | ||
assert!(align_of::<i64>() == 8); | ||
assert!(align_of::<i128>() == 16); | ||
assert!(align_of::<isize>() == 8); | ||
assert!(align_of::<u8>() == 1); | ||
assert!(align_of::<u16>() == 2); | ||
assert!(align_of::<u32>() == 4); | ||
assert!(align_of::<u64>() == 8); | ||
assert!(align_of::<u128>() == 16); | ||
assert!(align_of::<usize>() == 8); | ||
assert!(align_of::<f32>() == 4); | ||
assert!(align_of::<f64>() == 8); | ||
assert!(align_of::<bool>() == 1); | ||
assert!(align_of::<char>() == 4); | ||
// Compound types (tuple and array) | ||
assert!(align_of::<(i32, i32)>() == 4); | ||
assert!(align_of::<[i32; 5]>() == 4); | ||
// Custom data types (struct and enum) | ||
assert!(align_of::<MyStruct>() == 1); | ||
assert!(align_of::<MyEnum>() == 1); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.