Files
rust/compiler
Jonathan Brouwer fdf56d2cf4 Rollup merge of #156659 - Zalathar:syntax-context, r=oli-obk
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`, so this PR is a more principled fix for https://github.com/rust-lang/rust/issues/147339.
2026-05-28 10:36:44 +02:00
..
2026-05-04 16:28:58 +00:00
2026-05-20 11:44:04 +02:00
2026-05-04 16:28:58 +00:00
2026-05-22 19:40:22 +09:00
2026-05-18 10:41:15 +03:00
2026-05-11 21:32:42 +02:00
2026-05-26 21:35:25 +08:00
2026-05-22 12:36:19 +03:00
2026-05-12 21:58:50 +02:00