Function rustc_const_eval::util::is_subtype
source · pub fn is_subtype<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
src: Ty<'tcx>,
dest: Ty<'tcx>
) -> boolExpand description
Returns whether src is a subtype of dest, i.e. src <: dest.
This mostly ignores opaque types as it can be used in constraining contexts while still computing the final underlying type.