fn unused_generic_params<'tcx>(
    tcx: TyCtxt<'tcx>,
    instance: InstanceDef<'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).