Function clippy_utils::ty::implements_trait_with_env
source · pub fn implements_trait_with_env<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
ty: Ty<'tcx>,
trait_id: DefId,
ty_params: &[GenericArg<'tcx>]
) -> bool
Expand description
Same as implements_trait
but allows using a ParamEnv
different from the lint context.