Use the correct span when emitting the env! result

This commit is contained in:
Thom Chiovoloni 2023-11-04 14:04:01 -07:00
parent 9c8a2694fa
commit 86fca873ba
No known key found for this signature in database

View File

@ -108,7 +108,7 @@ pub fn expand_env<'cx>(
return DummyResult::any(sp);
}
Some(value) => cx.expr_str(sp, value),
Some(value) => cx.expr_str(span, value),
};
MacEager::expr(e)
}