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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,10 @@ fn partially_normalize_associated_types_in<T>(
/// - 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,