diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-07-22 00:32:59 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-07-22 00:36:10 -0700 |
| commit | 551cb9f1f4fa315639033e3db39794e10a14b7f7 (patch) | |
| tree | 99fba7cb7606a9843415f120dd15041ffdfd2053 /compiler/rustc_resolve/src/errors.rs | |
| parent | 9748d87dc70a9a6725c5dbd76ce29d04752b4f90 (diff) | |
| download | rust-551cb9f1f4fa315639033e3db39794e10a14b7f7.tar.gz rust-551cb9f1f4fa315639033e3db39794e10a14b7f7.zip | |
mbe: Use concrete type for `get_unused_rule`
Rather than adding `get_unused_rule` to the `TTMacroExpander` trait, put it on the concrete `MacroRulesMacroExpander`, and downcast to that type via `Any` in order to call it. Suggested-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
