about summary refs log tree commit diff
path: root/tests/coverage/closure_macro_async.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-20 02:58:08 +0000
committerbors <bors@rust-lang.org>2024-01-20 02:58:08 +0000
commit128148d4cf742c3056e9bfc65e7cc9531cb0f815 (patch)
tree0eedeffb6a188f3dd18f99d070ba66e814779213 /tests/coverage/closure_macro_async.rs
parent0547c41f906760ce117a55ca690820b44d8e7eef (diff)
parentee126973b0075060d9d95e401533181c5e8c5864 (diff)
downloadrust-128148d4cf742c3056e9bfc65e7cc9531cb0f815.tar.gz
rust-128148d4cf742c3056e9bfc65e7cc9531cb0f815.zip
Auto merge of #120136 - matthiaskrgr:rollup-3zzb0z9, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - #117561 (Stabilize `slice_first_last_chunk`)
 - #117662 ([rustdoc] Allows links in headings)
 - #119815 (Format sources into the error message when loading codegen backends)
 - #119835 (Exhaustiveness: simplify empty pattern logic)
 - #119984 (Change return type of unstable `Waker::noop()` from `Waker` to `&Waker`.)
 - #120009 (never_patterns: typecheck never patterns)
 - #120122 (Don't add needs-triage to A-diagnostics)
 - #120126 (Suggest `.swap()` when encountering conflicting borrows from `mem::swap` on a slice)
 - #120134 (Restrict access to the private field of newtype indexes)

Failed merges:

 - #119968 (Remove unused/unnecessary features)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/coverage/closure_macro_async.rs')
-rw-r--r--tests/coverage/closure_macro_async.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/coverage/closure_macro_async.rs b/tests/coverage/closure_macro_async.rs
index a7f0cabb4c2..9f5721b5e26 100644
--- a/tests/coverage/closure_macro_async.rs
+++ b/tests/coverage/closure_macro_async.rs
@@ -53,8 +53,7 @@ mod executor {
     #[coverage(off)]
     pub fn block_on<F: Future>(mut future: F) -> F::Output {
         let mut future = pin!(future);
-        let waker = Waker::noop();
-        let mut context = Context::from_waker(&waker);
+        let mut context = Context::from_waker(Waker::noop());
 
         loop {
             if let Poll::Ready(val) = future.as_mut().poll(&mut context) {