We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa611a commit f5f6761Copy full SHA for f5f6761
compiler/rustc_const_eval/src/util/compare_types.rs
@@ -28,6 +28,9 @@ pub fn is_equal_up_to_subtyping<'tcx>(
28
}
29
30
/// Returns whether `src` is a subtype of `dest`, i.e. `src <: dest`.
31
+///
32
+/// This mostly ignores opaque types as it can be used in constraining contexts
33
+/// while still computing the final underlying type.
34
pub fn is_subtype<'tcx>(
35
tcx: TyCtxt<'tcx>,
36
param_env: ParamEnv<'tcx>,
0 commit comments