update docs for type_implements_trait

This commit is contained in:
Niko Matsakis
2021-08-25 11:39:35 -04:00
committed by GitHub
parent a216d666ca
commit d7d122faec

View File

@@ -44,6 +44,10 @@ pub trait InferCtxtExt<'tcx> {
/// - the self type
/// - the *other* type parameters of the trait, excluding the self-type
/// - the parameter environment
///
/// Invokes `evaluate_obligation`, so in the event that evaluating
/// `Ty: Trait` causes overflow, EvaluatedToRecur (or EvaluatedToUnknown)
/// will be returned.
fn type_implements_trait(
&self,
trait_def_id: DefId,