Skip to content

fix: add macro semicolon in item position#22536

Open
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:item-macro-semicolon
Open

fix: add macro semicolon in item position#22536
A4-Tacks wants to merge 1 commit into
rust-lang:masterfrom
A4-Tacks:item-macro-semicolon

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Jun 6, 2026

Copy link
Copy Markdown
Member

Example

macro_rules! foo { () => {} }
f$0

Before this PR

macro_rules! foo { () => {} }
foo!($0)

After this PR

macro_rules! foo { () => {} }
foo!($0);

Example
---
```rust
macro_rules! foo { () => {} }
f$0
```

**Before this PR**

```rust
macro_rules! foo { () => {} }
foo!($0)
```

**After this PR**

```rust
macro_rules! foo { () => {} }
foo!($0);
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 6, 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