internal: Restructure some semantics APIs for virtual macro files

This commit is contained in:
Lukas Wirth 2025-05-30 22:02:59 +02:00
parent f0e39c77cc
commit 38bf4b1fe1
12 changed files with 185 additions and 79 deletions

View file

@ -542,7 +542,7 @@ fn descend_token(
let mut t = None;
let mut r = 0;
sema.descend_into_macros_breakable(token.clone(), |tok, _ctx| {
sema.descend_into_macros_breakable(token.clone().into(), |tok, _ctx| {
// FIXME: Consider checking ctx transparency for being opaque?
let my_rank = ranker.rank_token(&tok.value);