about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils
diff options
context:
space:
mode:
authorjackh726 <git@jackhuey.me>2025-09-28 23:04:55 +0000
committerJack Huey <31162821+jackh726@users.noreply.github.com>2025-09-30 12:58:28 -0400
commitd1bbd39c59523d7a5499816a9da200a5910f8b7f (patch)
tree7838d10fbefd94f88ca80892648422a8336f433f /compiler/rustc_ty_utils
parent6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 (diff)
downloadrust-d1bbd39c59523d7a5499816a9da200a5910f8b7f.tar.gz
rust-d1bbd39c59523d7a5499816a9da200a5910f8b7f.zip
Split Bound into Canonical and Bound
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r--compiler/rustc_ty_utils/src/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs
index e91e5055e90..bb25a14ef74 100644
--- a/compiler/rustc_ty_utils/src/ty.rs
+++ b/compiler/rustc_ty_utils/src/ty.rs
@@ -235,7 +235,7 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ImplTraitInTraitFinder<'_, 'tcx> {
             // bounds of the RPITIT. Shift these binders back out when
             // constructing the top-level projection predicate.
             let shifted_alias_ty = fold_regions(self.tcx, unshifted_alias_ty, |re, depth| {
-                if let ty::ReBound(index, bv) = re.kind() {
+                if let ty::ReBound(ty::BoundVarIndexKind::Bound(index), bv) = re.kind() {
                     if depth != ty::INNERMOST {
                         return ty::Region::new_error_with_message(
                             self.tcx,