Skip to content

Commit 2ab927e

Browse files
committedMar 2, 2024
Split item bounds and item super predicates
1 parent 5257aee commit 2ab927e

File tree

63 files changed

+642
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+642
-165
lines changed
 

‎compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
710710
.copied()
711711
.find_map(find_fn_kind_from_did),
712712
ty::Alias(ty::Opaque, ty::AliasTy { def_id, args, .. }) => tcx
713-
.explicit_item_bounds(def_id)
713+
.explicit_item_super_predicates(def_id)
714714
.iter_instantiated_copied(tcx, args)
715715
.find_map(|(clause, span)| find_fn_kind_from_did((clause, span))),
716716
ty::Closure(_, args) => match args.as_closure().kind() {

‎compiler/rustc_hir_analysis/src/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ fn fn_sig_suggestion<'tcx>(
427427

428428
let asyncness = if tcx.asyncness(assoc.def_id).is_async() {
429429
output = if let ty::Alias(_, alias_ty) = *output.kind() {
430-
tcx.explicit_item_bounds(alias_ty.def_id)
430+
tcx.explicit_item_super_predicates(alias_ty.def_id)
431431
.iter_instantiated_copied(tcx, alias_ty.args)
432432
.find_map(|(bound, _)| bound.as_projection_clause()?.no_bound_vars()?.term.ty())
433433
.unwrap_or_else(|| {

0 commit comments

Comments
 (0)