Skip to main content

has_unmodeled_generic_call

Function has_unmodeled_generic_call 

Source
pub(crate) fn has_unmodeled_generic_call<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
) -> bool
Expand description

Whether def_id’s body (or any callee it would inline) contains a trait-method call with no executable MIR (a still-generic T: Bound or virtual dispatch) and no symbolic model — i.e. a call whose opaque fallback would lose dataflow and therefore benefits from caller monomorphization.