Auto merge of #16474 - davidbarsky:david/import-on-the-fly-improvements, r=lnicola

internal: even more `tracing`

As part of profiling completions, I added some additional spans and moved `TyBuilder::subst_for_def` closer to its usage site (the latter had a small impact on completion performance. Thanks for the tip, Lukas!)
This commit is contained in:
bors 2024-02-05 09:01:58 +00:00
commit 3e47532dd4
9 changed files with 50 additions and 4 deletions

View file

@ -605,6 +605,7 @@ fn assoc_to_item(assoc: AssocItem) -> ItemInNs {
}
}
#[tracing::instrument(skip_all)]
fn get_mod_path(
db: &RootDatabase,
item_to_search: ItemInNs,