]> git.lizzy.rs Git - rust.git/commitdiff
smoke-test for async fn with mir-opt-level=0
authorRalf Jung <post@ralfj.de>
Wed, 22 Apr 2020 21:03:37 +0000 (23:03 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 22 Apr 2020 21:34:13 +0000 (23:34 +0200)
src/test/ui/async-await/async-await.rs
src/test/ui/async-await/async-closure.rs
src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs
src/test/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs
src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs

index 1dc7315e88c111b5fd480b796cba4e1e40731f45..0207752afe09892a3eb73c1b1afd2df3f619db94 100644 (file)
@@ -1,5 +1,8 @@
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 #![allow(unused)]
 
 // edition:2018
index 9a24bd8c9543953251f5bf54c02cab1e9bda9fcd..12d66b19e07d44cb9467d88a6dc9238c6e751ed8 100644 (file)
@@ -1,5 +1,8 @@
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 // edition:2018
 // aux-build:arc_wake.rs
 
index 00072786a50a7524997dc8d5cd8f5e16d2e1af8e..6c10ead3690b246af378e6cbca9bd88ed345a5fa 100644 (file)
@@ -2,6 +2,9 @@
 // edition:2018
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 #![allow(unused_variables)]
 
 // Test that the drop order for parameters in a fn and async fn matches up. Also test that
index e40acff6dc1175af0966a7fd5d5bafe6670b57d7..4ec43708584acb7e6c86d4b3f822ca11e462f1dc 100644 (file)
@@ -2,6 +2,9 @@
 // edition:2018
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 #![allow(unused_variables)]
 
 // Test the drop order for parameters relative to local variables and
index 9e8304935bffc6c713a7d8eaa5d7d5e56e3b7aa2..cfd68bc0d23458cfec4ae8f6a65f4dfb65edc738 100644 (file)
@@ -2,6 +2,9 @@
 // edition:2018
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 // Test that the drop order for parameters in a fn and async fn matches up. Also test that
 // parameters (used or unused) are not dropped until the async fn is cancelled.
 // This file is mostly copy-pasted from drop-order-for-async-fn-parameters.rs