Skip to content

Commit 44b585e

Browse files
authored
Upgrade toolchain to 2024-09-09 (#3518)
Relevant upstream PR: rust-lang/rust#129313: Supress niches in coroutines to avoid aliasing violations #129313 Resolves #3512 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent d98ba4d commit 44b585e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
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-2024-09-08"
5+
channel = "nightly-2024-09-09"
66
components = ["llvm-tools", "rustc-dev", "rust-src", "rustfmt"]

tests/kani/Coroutines/rustc-coroutine-tests/niche-in-generator-size.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn main() {
2626
take(x);
2727
};
2828

29-
// FIXME: size of coroutines does not work reliably (https://github.com/model-checking/kani/issues/1395)
30-
assert_eq!(size_of_val(&gen1), size_of_val(&Some(gen1)));
29+
// FIXME(https://github.com/rust-lang/rust/issues/63818#issuecomment-2264915918):
30+
// niches in coroutines are disabled. Should be `assert_eq`.
31+
assert_ne!(size_of_val(&gen1), size_of_val(&Some(gen1)));
3132
}

0 commit comments

Comments
 (0)