summaryrefslogtreecommitdiffstats
path: root/tests/run-coverage/closure_macro_async.coverage
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /tests/run-coverage/closure_macro_async.coverage
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/run-coverage/closure_macro_async.coverage')
-rw-r--r--tests/run-coverage/closure_macro_async.coverage20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/run-coverage/closure_macro_async.coverage b/tests/run-coverage/closure_macro_async.coverage
index 0e4365fc7..74247f1bc 100644
--- a/tests/run-coverage/closure_macro_async.coverage
+++ b/tests/run-coverage/closure_macro_async.coverage
@@ -1,5 +1,5 @@
LL| |// compile-flags: --edition=2018
- LL| |#![feature(no_coverage)]
+ LL| |#![feature(coverage_attribute)]
LL| |
LL| |macro_rules! bail {
LL| | ($msg:literal $(,)?) => {
@@ -40,9 +40,9 @@
LL| 1| Ok(())
LL| 1|}
LL| |
- LL| |#[no_coverage]
+ LL| |#[coverage(off)]
LL| |fn main() {
- LL| | executor::block_on(test());
+ LL| | executor::block_on(test()).unwrap();
LL| |}
LL| |
LL| |mod executor {
@@ -52,22 +52,18 @@
LL| | task::{Context, Poll, RawWaker, RawWakerVTable, Waker},
LL| | };
LL| |
- LL| | #[no_coverage]
+ LL| | #[coverage(off)]
LL| | pub fn block_on<F: Future>(mut future: F) -> F::Output {
LL| | let mut future = unsafe { Pin::new_unchecked(&mut future) };
LL| | use std::hint::unreachable_unchecked;
LL| | static VTABLE: RawWakerVTable = RawWakerVTable::new(
- LL| |
- LL| | #[no_coverage]
+ LL| | #[coverage(off)]
LL| | |_| unsafe { unreachable_unchecked() }, // clone
- LL| |
- LL| | #[no_coverage]
+ LL| | #[coverage(off)]
LL| | |_| unsafe { unreachable_unchecked() }, // wake
- LL| |
- LL| | #[no_coverage]
+ LL| | #[coverage(off)]
LL| | |_| unsafe { unreachable_unchecked() }, // wake_by_ref
- LL| |
- LL| | #[no_coverage]
+ LL| | #[coverage(off)]
LL| | |_| (),
LL| | );
LL| | let waker = unsafe { Waker::from_raw(RawWaker::new(core::ptr::null(), &VTABLE)) };