mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
smoke-test for async fn with mir-opt-level=0
This commit is contained in:
parent
45d050cde2
commit
9ea5eed32b
@ -1,5 +1,8 @@
|
|||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
|
// revisions: default nomiropt
|
||||||
|
//[nomiropt]compile-flags: -Z mir-opt-level=0
|
||||||
|
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
|
|
||||||
// edition:2018
|
// edition:2018
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
|
// revisions: default nomiropt
|
||||||
|
//[nomiropt]compile-flags: -Z mir-opt-level=0
|
||||||
|
|
||||||
// edition:2018
|
// edition:2018
|
||||||
// aux-build:arc_wake.rs
|
// aux-build:arc_wake.rs
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
// edition:2018
|
// edition:2018
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
|
// revisions: default nomiropt
|
||||||
|
//[nomiropt]compile-flags: -Z mir-opt-level=0
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
|
|
||||||
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
|
// Test that the drop order for parameters in a fn and async fn matches up. Also test that
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
// edition:2018
|
// edition:2018
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
|
// revisions: default nomiropt
|
||||||
|
//[nomiropt]compile-flags: -Z mir-opt-level=0
|
||||||
|
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
|
|
||||||
// Test the drop order for parameters relative to local variables and
|
// Test the drop order for parameters relative to local variables and
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
// edition:2018
|
// edition:2018
|
||||||
// run-pass
|
// 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
|
// 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.
|
// 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
|
// This file is mostly copy-pasted from drop-order-for-async-fn-parameters.rs
|
||||||
|
Loading…
Reference in New Issue
Block a user