rust icon indicating copy to clipboard operation
rust copied to clipboard

Remove lowering for inline const patterns and cleanup parsing

Open nbdd0121 opened this issue 1 month ago • 2 comments

Follow up to rust-lang/rust#138492 to remove the lowering of inline const that still remains.

Only visible change is that when reporting the error, the "const" keyword is covered in span too, which I think is better.

r? @lcnr

nbdd0121 avatar Dec 05 '25 16:12 nbdd0121

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred in match checking

cc @Nadrieril

rustbot avatar Dec 05 '25 16:12 rustbot

cc @dianne

Nadrieril avatar Dec 06 '25 11:12 Nadrieril

I'd prefer to land this via #149667. Otherwise, this looks good to me, apart from a couple nits.

Thanks for mentioning, I wasn't aware of that PR. I'll close this one then. If that one stalls please let me know and I'll re-open.

nbdd0121 avatar Dec 08 '25 11:12 nbdd0121