add comment about opaque types

This commit is contained in:
lcnr 2022-11-15 13:43:57 +01:00
parent 6aa611a84c
commit f5f67618e2

View File

@ -28,6 +28,9 @@ pub fn is_equal_up_to_subtyping<'tcx>(
}
/// 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.
pub fn is_subtype<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,