Commit 6b70f91
authored
Scoverage & CC interaction: exempt CC nested symbols from @experimental check (#25687)
Capture checking introduces some `experimental` symbols that are exempt
from experimental checks with capture checking enabled. Currently,
exemptions are only applied to the symbol itself, not its owner.
Coverage instrumentation introduces synthetic `ValDef`s which may expose
capture checking symbols owned by experimental classes to experimental
checks, bypassing the exemption.
This PR hardens the exemption to apply check the owner of the symbol as
well.
## How much have you relied on LLM-based tools in this contribution?
Moderately.
## How was the solution tested?
- Reproduced the two failing tests individually with coverage before the
fix
- Re-ran the same two tests with coverage after the fix and confirmed
they pass
- Ran positive & coverage compilation suites with the fix introduced1 parent 88140bc commit 6b70f91
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
0 commit comments