about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-23 17:48:30 +0100
committerGitHub <noreply@github.com>2021-12-23 17:48:30 +0100
commit94b9b5f35fe1b8a6e7990279807cd5ed9c315dbd (patch)
treeac8600b5e37235989fbe2379e204642c71f606b2
parent40c67206209b485b9e99f5e4e3a3bc9b8d255123 (diff)
parent59949900885930494df9c803b61bbe93e507e0cb (diff)
Rollup merge of #92121 - RalfJung:miri-core-test, r=kennytm
disable test with self-referential generator on Miri

Running the libcore test suite in Miri currently fails due to the known incompatibility of self-referential generators with Miri's aliasing checks (https://github.com/rust-lang/unsafe-code-guidelines/issues/148). So let's disable that test in Miri for now.
-rw-r--r--library/core/tests/future.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/future.rs b/library/core/tests/future.rs
index e8b83b5cbc2..0ed8c52c212 100644
--- a/library/core/tests/future.rs
+++ b/library/core/tests/future.rs
@@ -30,6 +30,7 @@ fn poll_n(val: usize, num: usize) -> PollN {
 }
 
 #[test]
+#[cfg_attr(miri, ignore)] // self-referential generators do not work with Miri's aliasing checks
 fn test_join() {
     block_on(async move {
         let x = join!(async { 0 }).await;