Skip to content

Commit

Permalink
update docs for type_implements_trait
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Aug 25, 2021
1 parent a216d66 commit d7d122f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_trait_selection/src/infer.rs
Expand Up @@ -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,
Expand Down

0 comments on commit d7d122f

Please sign in to comment.