mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-31 20:09:01 +00:00
Show expansion errors in expand_macro feature
This commit is contained in:
parent
acd469681f
commit
28fbecff42
7 changed files with 76 additions and 37 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue