We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
type_implements_trait
1 parent a216d66 commit d7d122fCopy full SHA for d7d122f
compiler/rustc_trait_selection/src/infer.rs
@@ -44,6 +44,10 @@ pub trait InferCtxtExt<'tcx> {
44
/// - the self type
45
/// - the *other* type parameters of the trait, excluding the self-type
46
/// - the parameter environment
47
+ ///
48
+ /// Invokes `evaluate_obligation`, so in the event that evaluating
49
+ /// `Ty: Trait` causes overflow, EvaluatedToRecur (or EvaluatedToUnknown)
50
+ /// will be returned.
51
fn type_implements_trait(
52
&self,
53
trait_def_id: DefId,
0 commit comments