trigger_queries

Function trigger_queries 

Source
fn trigger_queries(
    genv: GlobalEnv<'_, '_>,
    def_id: MaybeExternId,
) -> QueryResult
Expand description

Triggers queries for the given def_id to mark it as “reached” for metadata encoding.

This function ensures that all relevant queries for a definition are triggered upfront, so the item and its associated data will be included in the encoded metadata. Without this, items might be missing from the metadata (extern specs in particular which are not otherwise “checked”), causing errors when dependent crates try to use them.