about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn-nonsend.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-07 18:38:52 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-09-23 13:34:07 +0000
commita626caaad97b7f8733b8c9bd1fe9662cfc1e3ec1 (patch)
tree5dba1769b61e7fbf1be8ee5c1fa52878d85f30e7 /tests/ui/async-await/async-fn-nonsend.rs
parentff032043653e7aebfbf74ab59572f929aa2beb65 (diff)
downloadrust-a626caaad97b7f8733b8c9bd1fe9662cfc1e3ec1.tar.gz
rust-a626caaad97b7f8733b8c9bd1fe9662cfc1e3ec1.zip
Revert duplication of tests.
Diffstat (limited to 'tests/ui/async-await/async-fn-nonsend.rs')
-rw-r--r--tests/ui/async-await/async-fn-nonsend.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/ui/async-await/async-fn-nonsend.rs b/tests/ui/async-await/async-fn-nonsend.rs
index ed440bd0182..d7f8d7ac546 100644
--- a/tests/ui/async-await/async-fn-nonsend.rs
+++ b/tests/ui/async-await/async-fn-nonsend.rs
@@ -1,8 +1,5 @@
-// revisions: no_drop_tracking drop_tracking drop_tracking_mir
-// [drop_tracking] compile-flags: -Zdrop-tracking
-// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
 // edition:2018
-// compile-flags: --crate-type lib
+// compile-flags: --crate-type lib -Zdrop-tracking
 
 use std::{cell::RefCell, fmt::Debug, rc::Rc};
 
@@ -68,13 +65,10 @@ fn assert_send(_: impl Send) {}
 
 pub fn pass_assert() {
     assert_send(local_dropped_before_await());
-    //[no_drop_tracking]~^ ERROR future cannot be sent between threads safely
     assert_send(non_send_temporary_in_match());
     //~^ ERROR future cannot be sent between threads safely
     assert_send(non_sync_with_method_call());
     //~^ ERROR future cannot be sent between threads safely
     assert_send(non_sync_with_method_call_panic());
-    //[no_drop_tracking]~^ ERROR future cannot be sent between threads safely
     assert_send(non_sync_with_method_call_infinite_loop());
-    //[no_drop_tracking]~^ ERROR future cannot be sent between threads safely
 }