File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 LL| |
2525 LL| 0|async fn foo() -> [bool; 10] { [false; 10] } // unused function; executor does not block on `h()`
2626 LL| |
27- LL| 1|async fn g(x: u8) {
28- ^0
27+ LL| 0|async fn g(x: u8) {
2928 LL| 0| match x {
3029 LL| 0| y if e().await == y => (),
3130 LL| 0| y if f().await == y => (),
3231 LL| 0| _ => (),
3332 LL| | }
3433 LL| 0|}
3534 LL| |
36- LL| 1|async fn h(x: usize) { // The function signature is counted when called, but the body is not
37- ^0
35+ LL| 0|async fn h(x: usize) { // The function signature is counted when called, but the body is not
3836 LL| | // executed (not awaited) so the open brace has a `0` count (at least when
3937 LL| | // displayed with `llvm-cov show` in color-mode).
4038 LL| 0| match x {
9290 LL| | }
9391 LL| 1|}
9492 LL| |
95- LL| 1|async fn m(x: u8) -> u8 { x - 1 }
96- ^0^0 ^0
93+ LL| 0|async fn m(x: u8) -> u8 { x - 1 }
9794 LL| |
9895 LL| 1|fn main() {
9996 LL| 1| let _ = g(10);
Original file line number Diff line number Diff line change 1818 LL| | }
1919 LL| |}
2020 LL| |
21- LL| 0 |async fn foo2(never: Never) {
21+ LL| |async fn foo2(never: Never) {
2222 LL| | match never {}
2323 LL| |}
2424 LL| |
You can’t perform that action at this time.
0 commit comments