Eric Huss
0efa90f246
Add a test for coverage attr on trait function
2024-12-24 00:09:38 +11:00
Zalathar
87c2f9a5be
Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser"
...
This reverts commit 1d35638dc3
, reversing
changes made to f23a80a4c2
.
2024-12-23 12:30:37 +11:00
Eric Huss
dbf5ae3a86
Add reference annotations for the coverage
attribute
2024-12-18 15:03:44 -08:00
ltdk
cb487cc2fa
Stabilize #[coverage] attribute
2024-12-16 21:07:06 -05:00
Zalathar
599f95ecc2
coverage: Include the highest counter ID seen in .cov-map
dumps
...
When making changes that have a large impact on coverage counter creation, this
makes it easier to see whether the number of physical counters has changed.
(The highest counter ID seen in coverage maps is not necessarily the same as
the number of physical counters actually used by the instrumented code, but
it's the best approximation we can get from looking only at the coverage maps,
and it should be reasonably accurate in most cases.)
2024-10-11 21:04:37 +11:00
Zalathar
63c04f05e6
coverage: Extract hole spans from HIR instead of MIR
...
This makes it possible to treat more kinds of nested item/code as holes,
instead of being restricted to closures.
2024-07-08 21:22:56 +10:00
Zalathar
7f37f8af5f
coverage: Allow #[coverage(..)]
on impl
and mod
...
These attributes apply to all enclosed functions/methods/closures, unless
explicitly overridden by another coverage attribute.
2024-06-26 10:08:05 +10:00
Zalathar
3262611cc5
coverage: Apply #[coverage(..)]
recursively to nested functions
2024-06-26 10:08:05 +10:00
Zalathar
5093658632
Add more thorough coverage tests for #[coverage(..)]
in nested functions
...
These tests reflect the current implementation behaviour, which is not
necessarily the desired behaviour.
2024-06-18 21:27:34 +10:00