Type generalization should not look at opaque type in coherence

This commit is contained in:
Oli Scherer 2022-11-17 09:49:18 +00:00
parent 11ae334f07
commit 7301cd7844

View File

@ -548,8 +548,7 @@ impl<'tcx> TypeRelation<'tcx> for Generalizer<'_, 'tcx> {
} }
fn mark_ambiguous(&mut self) { fn mark_ambiguous(&mut self) {
// The generalizer always compares types against themselves, self.infcx.tcx.sess.delay_span_bug(self.cause.span, "opaque types are handled in `tys`");
// and thus doesn't really take part in coherence.
} }
fn binders<T>( fn binders<T>(