rustc_monomorphize::polymorphize

Function unused_generic_params

Source
fn unused_generic_params<'tcx>(
    tcx: TyCtxt<'tcx>,
    instance: InstanceKind<'tcx>,
) -> UnusedGenericParams
Expand description

Determine which generic parameters are used by the instance.

Returns a bitset where bits representing unused parameters are set (is_empty indicates all parameters are used).