about summary refs log tree commit diff
path: root/compiler/rustc_borrowck
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-03-20 12:52:48 -0400
committerMichael Goulet <michael@errs.io>2024-03-20 13:00:34 -0400
commitaa39dbb962fc1410613458e88269fe0b760ad7f8 (patch)
tree0c5db226029fd98cf8f4a3a50e288164758d1c75 /compiler/rustc_borrowck
parenta128516cf9de352ae1f9d430ed730363c7ca3c0c (diff)
downloadrust-aa39dbb962fc1410613458e88269fe0b760ad7f8.tar.gz
rust-aa39dbb962fc1410613458e88269fe0b760ad7f8.zip
Split item bounds and item super predicates
Diffstat (limited to 'compiler/rustc_borrowck')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
index 0109f188772..aa98d060f5f 100644
--- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
+++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
@@ -716,7 +716,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
                 .copied()
                 .find_map(find_fn_kind_from_did),
             ty::Alias(ty::Opaque, ty::AliasTy { def_id, args, .. }) => tcx
-                .explicit_item_bounds(def_id)
+                .explicit_item_super_predicates(def_id)
                 .iter_instantiated_copied(tcx, args)
                 .find_map(|(clause, span)| find_fn_kind_from_did((clause, span))),
             ty::Closure(_, args) => match args.as_closure().kind() {