diff options
| author | bors <bors@rust-lang.org> | 2024-10-07 03:22:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-10-07 03:22:04 +0000 |
| commit | 8841a3daddd4013c52e8b6de0407fd9b5902583c (patch) | |
| tree | 59989ba3900b8c92ece429ad8cbb310881d7e115 /compiler/rustc_middle/src | |
| parent | a964a9227787447016894268152bff79ee76a36b (diff) | |
| parent | 3fdcde76d9bcbf31e2409aefede4dd8b2f7c315f (diff) | |
| download | rust-8841a3daddd4013c52e8b6de0407fd9b5902583c.tar.gz rust-8841a3daddd4013c52e8b6de0407fd9b5902583c.zip | |
Auto merge of #131226 - nnethercote:rustc_infer-cleanups, r=lcnr
`rustc_infer` cleanups Various small improvements I found while reading over this code. r? `@lcnr`
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/relate.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_middle/src/ty/relate.rs b/compiler/rustc_middle/src/ty/relate.rs index 61c03922ac0..4c7bcb1bf2e 100644 --- a/compiler/rustc_middle/src/ty/relate.rs +++ b/compiler/rustc_middle/src/ty/relate.rs @@ -212,15 +212,7 @@ impl<'tcx> Relate<TyCtxt<'tcx>> for ty::GenericArg<'tcx> { (ty::GenericArgKind::Const(a_ct), ty::GenericArgKind::Const(b_ct)) => { Ok(relation.relate(a_ct, b_ct)?.into()) } - (ty::GenericArgKind::Lifetime(unpacked), x) => { - bug!("impossible case reached: can't relate: {:?} with {:?}", unpacked, x) - } - (ty::GenericArgKind::Type(unpacked), x) => { - bug!("impossible case reached: can't relate: {:?} with {:?}", unpacked, x) - } - (ty::GenericArgKind::Const(unpacked), x) => { - bug!("impossible case reached: can't relate: {:?} with {:?}", unpacked, x) - } + _ => bug!("impossible case reached: can't relate: {a:?} with {b:?}"), } } } |
