]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #103898 - Nilstrieb:match-macro, r=nnethercote
authorbors <bors@rust-lang.org>
Fri, 11 Nov 2022 04:54:59 +0000 (04:54 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Nov 2022 04:54:59 +0000 (04:54 +0000)
Retry failed macro matching for diagnostics

When a declarative macro fails to match, retry the matching to collect diagnostic info instead of collecting it on the fly in the hot path. Split out of #103439.

You made a bunch of changes to declarative macro matching, so
r? `@nnethercote`

This change should produce a few small perf wins: https://github.com/rust-lang/rust/pull/103439#issuecomment-1294249602


Trivial merge