Skip to content

fix: Fix wrong descend range for add_missing_match_arms#21728

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:add-match-arms-descend-range
Mar 4, 2026
Merged

fix: Fix wrong descend range for add_missing_match_arms#21728
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
A4-Tacks:add-match-arms-descend-range

Conversation

@A4-Tacks
Copy link
Member

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

Example

macro_rules! m { ($expr:expr) => {$expr}} enum Test { A, B, C, } fn foo(t: Test) { m!(match t { Test::A => (), $0}); }

Before this PR

Assist not applicable

After this PR

macro_rules! m { ($expr:expr) => {$expr}} enum Test { A, B, C, } fn foo(t: Test) { m!(match t { Test::A=>(), Test::B => ${1:todo!()}, Test::C => ${2:todo!()},$0 }); }
Example --- ```rust macro_rules! m { ($expr:expr) => {$expr}} enum Test { A, B, C, } fn foo(t: Test) { m!(match t { Test::A => (), $0}); } ``` **Before this PR** Assist not applicable **After this PR** ```rust macro_rules! m { ($expr:expr) => {$expr}} enum Test { A, B, C, } fn foo(t: Test) { m!(match t { Test::A=>(), Test::B => ${1:todo!()}, Test::C => ${2:todo!()},$0 }); } ```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 1, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Mar 4, 2026
Merged via the queue into rust-lang:master with commit a105c17 Mar 4, 2026
16 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 4, 2026
@A4-Tacks A4-Tacks deleted the add-match-arms-descend-range branch March 4, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants