Files
rust/compiler/rustc_mir_transform/src
Zalathar 03de21ecc5 coverage: Build the expansion tree around SyntaxContext
The expansion tree was previously built around `ExpnId`, which was subtly
incorrect in cases where multiple distinct syntax contexts share the same
`outer_expn` ID. This can occur in the presence of nested macro expansions.

This change turns out to be fairly straightforward, because in all cases we
were obtaining `ExpnId` from `span.ctxt().outer_expn()` anyway, so we can just
remove the call to `.outer_expn()` and use the context instead.

As a result of this change, `context-mismatch-issue-147339.rs` no longer
triggers a context mismatch in `extract_refined_covspans`.
2026-05-28 12:51:40 +10:00
..
2026-05-07 21:55:44 +03:00
2026-03-07 10:42:02 -08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-03-11 06:25:23 +11:00
2025-10-19 02:22:18 +00:00
2026-04-20 00:18:28 +08:00
2026-05-12 21:58:50 +02:00