rustc_monomorphize::polymorphize

Function should_polymorphize

Source
fn should_polymorphize<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
    instance: InstanceKind<'tcx>,
) -> bool
Expand description

Returns true if the instance should be polymorphized.