We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6622172 commit d654e3cCopy full SHA for d654e3c
src/librustc/ty/relate.rs
@@ -702,7 +702,12 @@ impl<'tcx> Relate<'tcx> for Kind<'tcx> {
702
(UnpackedKind::Type(a_ty), UnpackedKind::Type(b_ty)) => {
703
Ok(relation.relate(&a_ty, &b_ty)?.into())
704
}
705
- (UnpackedKind::Lifetime(_), _) | (UnpackedKind::Type(_), _) => bug!()
+ (UnpackedKind::Lifetime(unpacked), x) => {
706
+ bug!("impossible case reached: can't relate: {:?} with {:?}", unpacked, x)
707
+ }
708
+ (UnpackedKind::Type(unpacked), x) => {
709
710
711
712
713
0 commit comments