Skip to content

Commit d7d122f

Browse files
authored
update docs for type_implements_trait
1 parent a216d66 commit d7d122f

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_trait_selection/src

1 file changed

+4
-0
lines changed

compiler/rustc_trait_selection/src/infer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ pub trait InferCtxtExt<'tcx> {
4444
/// - the self type
4545
/// - the *other* type parameters of the trait, excluding the self-type
4646
/// - 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.
4751
fn type_implements_trait(
4852
&self,
4953
trait_def_id: DefId,

0 commit comments

Comments
 (0)