Matthias Krüger
11d5614a74
Rollup merge of #130013 - jonathan-conder:await_coverage, r=Zalathar
...
coverage: Count await when the Future is immediately ready
Currently `await` is only counted towards coverage if the containing
function is suspended and resumed at least once. This is because it
expands to code which contains a branch on the discriminant of `Poll`.
By treating it like a branching macro (e.g. `assert!`), these
implementation details will be hidden from the coverage results.
I added a test to ensure the fix works in simple cases, but the heuristic of picking only the first await-related covspan might be unreliable. I plan on testing more thoroughly with a real codebase over the next couple of weeks.
closes #98712
2024-09-06 07:33:59 +02:00
..
2024-08-31 23:56:45 +02:00
2024-08-31 23:56:45 +02:00
2024-08-27 10:17:05 -07:00
2024-08-31 20:14:43 +00:00
2024-08-16 08:46:13 +10:00
2024-09-02 07:42:38 +02:00
2024-08-31 20:14:43 +00:00
2024-08-16 08:46:46 +10:00
2024-08-27 00:41:57 +02:00
2024-08-16 08:46:52 +10:00
2024-09-06 07:33:58 +02:00
2024-08-29 16:21:46 +02:00
2024-08-30 07:07:28 +00:00
2024-08-27 01:46:50 -05:00
2024-09-06 07:33:58 +02:00
2024-09-04 11:49:00 +00:00
2024-09-06 00:30:36 +03:00
2024-09-03 19:14:19 +02:00
2024-09-05 03:47:39 +02:00
2024-09-02 07:42:38 +02:00
2024-08-27 11:52:08 +10:00
2024-09-02 22:35:20 +02:00
2024-08-27 12:40:38 +10:00
2024-09-05 19:43:46 +02:00
2024-08-27 12:56:54 +10:00
2024-08-27 12:58:29 +10:00
2024-09-01 16:35:53 +02:00
2024-09-05 03:47:42 +02:00
2024-08-27 13:25:40 +10:00
2024-09-06 07:33:58 +02:00
2024-08-27 14:30:20 +10:00
2024-08-31 23:56:45 +02:00
2024-09-02 07:42:38 +02:00
2024-09-02 07:42:38 +02:00
2024-08-27 15:12:46 +10:00
2024-09-06 07:33:58 +02:00
2024-09-04 14:30:56 +02:00
2024-08-31 14:46:09 +02:00
2024-08-29 20:13:06 +10:00
2024-09-04 06:28:59 -04:00
2024-09-06 07:33:58 +02:00
2024-09-01 16:35:53 +02:00
2024-09-03 15:18:30 +10:00
2024-09-06 07:33:59 +02:00
2024-09-06 00:30:36 +03:00
2024-09-03 08:35:23 +02:00
2024-09-02 07:50:22 +02:00
2024-08-29 20:13:06 +10:00
2024-09-05 19:43:46 +02:00
2024-09-03 19:13:24 +02:00
2024-08-29 20:18:44 +10:00
2024-08-29 20:18:44 +10:00
2024-09-02 07:50:22 +02:00
2024-09-02 22:35:21 +02:00
2024-09-03 01:27:20 +00:00
2024-09-03 01:27:20 +00:00
2024-09-03 01:27:20 +00:00
2024-09-03 01:27:20 +00:00
2024-09-05 19:43:46 +02:00
2024-09-03 01:27:20 +00:00
2024-09-05 03:47:40 +02:00
2024-09-06 07:33:58 +02:00
2024-09-03 08:49:54 +10:00
2024-09-03 01:27:20 +00:00
2024-09-03 08:50:33 +10:00
2024-09-03 08:35:23 +02:00
2024-09-02 07:33:41 +02:00