Skip to content

fix: complete let in macro when expand at macro stmts - #22982

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:comp-let-in-macro-stmts
Open

fix: complete let in macro when expand at macro stmts#22982
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:comp-let-in-macro-stmts

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Aug 1, 2026

Copy link
Copy Markdown
Member

Example

macro_rules! m { ($($t:tt)*) => { $($t)* } }
fn quux(x: i32) {
    m!(l$0);
}

Differences

...
 kw if let
+kw impl
+kw impl for
+kw let
+kw letm
 kw loop
...

Example
---
```rust
macro_rules! m { ($($t:tt)*) => { $($t)* } }
fn quux(x: i32) {
    m!(l$0);
}
```

**Differences**

```diff
...
 kw if let
+kw impl
+kw impl for
+kw let
+kw letm
 kw loop
...
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants