Skip to content

Commit 9ea5eed

Browse files
committed
smoke-test for async fn with mir-opt-level=0
1 parent 45d050c commit 9ea5eed

5 files changed

+15
-0
lines changed

src/test/ui/async-await/async-await.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// run-pass
22

3+
// revisions: default nomiropt
4+
//[nomiropt]compile-flags: -Z mir-opt-level=0
5+
36
#![allow(unused)]
47

58
// edition:2018

src/test/ui/async-await/async-closure.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// run-pass
22

3+
// revisions: default nomiropt
4+
//[nomiropt]compile-flags: -Z mir-opt-level=0
5+
36
// edition:2018
47
// aux-build:arc_wake.rs
58

src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// edition:2018
33
// run-pass
44

5+
// revisions: default nomiropt
6+
//[nomiropt]compile-flags: -Z mir-opt-level=0
7+
58
#![allow(unused_variables)]
69

710
// Test that the drop order for parameters in a fn and async fn matches up. Also test that

src/test/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// edition:2018
33
// run-pass
44

5+
// revisions: default nomiropt
6+
//[nomiropt]compile-flags: -Z mir-opt-level=0
7+
58
#![allow(unused_variables)]
69

710
// Test the drop order for parameters relative to local variables and

src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// edition:2018
33
// run-pass
44

5+
// revisions: default nomiropt
6+
//[nomiropt]compile-flags: -Z mir-opt-level=0
7+
58
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
69
// parameters (used or unused) are not dropped until the async fn is cancelled.
710
// This file is mostly copy-pasted from drop-order-for-async-fn-parameters.rs

0 commit comments

Comments
 (0)