1
Fork 0

Ignore Inlined spans when computing caller location.

This commit is contained in:
Camille GILLOT 2023-03-18 13:46:17 +00:00
parent df61fcaec1
commit be8b323929
5 changed files with 37 additions and 5 deletions

View file

@ -880,7 +880,7 @@ impl Span {
pub fn fresh_expansion(self, expn_id: LocalExpnId) -> Span {
HygieneData::with(|data| {
self.with_ctxt(data.apply_mark(
SyntaxContext::root(),
self.ctxt(),
expn_id.to_expn_id(),
Transparency::Transparent,
))