mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
add comment about opaque types
This commit is contained in:
parent
6aa611a84c
commit
f5f67618e2
@ -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…
Reference in New Issue
Block a user