Skip to content

Commit 27393b1

Browse files
committed
Improve function name.
1 parent 5a73fd5 commit 27393b1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_traits/lowering.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ crate fn program_clauses_for<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefI
127127
}
128128
hir::map::Node::NodeImplItem(item) => {
129129
if let hir::ImplItemKind::Type(..) = item.node {
130-
program_clauses_for_associated_type(tcx, def_id)
130+
program_clauses_for_associated_type_value(tcx, def_id)
131131
} else {
132132
Lrc::new(vec![])
133133
}
@@ -243,8 +243,10 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
243243
Lrc::new(tcx.mk_clauses(iter::once(Clause::ForAll(ty::Binder::dummy(clause)))))
244244
}
245245

246-
pub fn program_clauses_for_associated_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, item_id: DefId)
247-
-> Lrc<Vec<Clause<'tcx>>> {
246+
pub fn program_clauses_for_associated_type_value<'a, 'tcx>(
247+
tcx: TyCtxt<'a, 'tcx, 'tcx>,
248+
item_id: DefId,
249+
) -> Lrc<Vec<Clause<'tcx>>> {
248250
// Rule Normalize-From-Impl (see rustc guide)
249251
//
250252
// ```impl<P0..Pn> Trait<A1..An> for A0

0 commit comments

Comments
 (0)