re-add comment
This commit is contained in:
parent
aa28b77b5a
commit
7c97a76b76
@ -324,6 +324,12 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
|
|||||||
candidates
|
candidates
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// HACK: `_: Trait` is ambiguous, because it may be satisfied via a builtin rule,
|
||||||
|
/// object bound, alias bound, etc. We are unable to determine this until we can at
|
||||||
|
/// least structurally resolve the type one layer.
|
||||||
|
///
|
||||||
|
/// It would also require us to consider all impls of the trait, which is both pretty
|
||||||
|
/// bad for perf and would also constrain the self type if there is just a single impl.
|
||||||
fn self_ty_infer_ambiguity_hack<G: GoalKind<'tcx>>(
|
fn self_ty_infer_ambiguity_hack<G: GoalKind<'tcx>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
goal: Goal<'tcx, G>,
|
goal: Goal<'tcx, G>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user