rustc_
mir_
transform
1.87.0-nightly
(920d95eaf 2025-03-28)
Module unexpand
Module Items
Functions
In rustc_
mir_
transform::
coverage
rustc_mir_transform
::
coverage
Module
unexpand
Copy item path
Source
Functions
ยง
unexpand_
into_
body_
span
๐
Walks through the expansion ancestors of
original_span
to find a span that is contained in
body_span
and has the same [syntax context] as
body_span
.
unexpand_
into_
body_
span_
with_
expn_
kind
๐
Walks through the expansion ancestors of
original_span
to find a span that is contained in
body_span
and has the same [syntax context] as
body_span
.
unexpand_
into_
body_
span_
with_
prev
๐
Walks through the expansion ancestors of
original_span
to find a span that is contained in
body_span
and has the same
syntax context
as
body_span
. The ancestor that was traversed just before the matching span (if any) is also returned.