Show expansion errors in expand_macro feature

This commit is contained in:
Lukas Wirth 2024-12-12 17:08:17 +01:00
parent acd469681f
commit 28fbecff42
7 changed files with 76 additions and 37 deletions

View file

@ -608,7 +608,7 @@ impl<'a> WalkExpandedExprCtx<'a> {
if let ast::Expr::MacroExpr(expr) = expr {
if let Some(expanded) =
expr.macro_call().and_then(|call| self.sema.expand(&call))
expr.macro_call().and_then(|call| self.sema.expand_macro_call(&call))
{
match_ast! {
match expanded {