Type generalization should not look at opaque type in coherence
This commit is contained in:
parent
11ae334f07
commit
7301cd7844
@ -548,8 +548,7 @@ impl<'tcx> TypeRelation<'tcx> for Generalizer<'_, 'tcx> {
|
||||
}
|
||||
|
||||
fn mark_ambiguous(&mut self) {
|
||||
// The generalizer always compares types against themselves,
|
||||
// and thus doesn't really take part in coherence.
|
||||
self.infcx.tcx.sess.delay_span_bug(self.cause.span, "opaque types are handled in `tys`");
|
||||
}
|
||||
|
||||
fn binders<T>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user