mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-14 22:35:11 +00:00
fix: Fix macro-calls expanding to items in if/while conditions
This commit is contained in:
parent
f8329ba987
commit
bb47c5f56c
2 changed files with 9 additions and 9 deletions
|
@ -894,7 +894,7 @@ impl ExpandTo {
|
|||
| CLOSURE_EXPR | BREAK_EXPR | RETURN_EXPR | MATCH_EXPR | MATCH_ARM | MATCH_GUARD
|
||||
| RECORD_EXPR_FIELD | CALL_EXPR | INDEX_EXPR | METHOD_CALL_EXPR | FIELD_EXPR
|
||||
| AWAIT_EXPR | CAST_EXPR | REF_EXPR | PREFIX_EXPR | RANGE_EXPR | BIN_EXPR
|
||||
| LET_EXPR => ExpandTo::Expr,
|
||||
| LET_EXPR | IF_EXPR | WHILE_EXPR => ExpandTo::Expr,
|
||||
LET_STMT => {
|
||||
// FIXME: Handle LHS Pattern
|
||||
ExpandTo::Expr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue