add comment about opaque types
This commit is contained in:
parent
6aa611a84c
commit
f5f67618e2
1 changed files with 3 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue