Skip to content

Commit 0bf3eb6

Browse files
committed
Improve function name.
1 parent 7d93920 commit 0bf3eb6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_traits/lowering.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ crate fn program_clauses_for<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefI
125125
}
126126
hir::map::Node::NodeImplItem(item) => {
127127
if let hir::ImplItemKind::Type(..) = item.node {
128-
program_clauses_for_associated_type(tcx, def_id)
128+
program_clauses_for_associated_type_value(tcx, def_id)
129129
} else {
130130
Lrc::new(vec![])
131131
}
@@ -239,8 +239,10 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
239239
Lrc::new(vec![Clause::ForAll(ty::Binder::dummy(clause))])
240240
}
241241

242-
pub fn program_clauses_for_associated_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, item_id: DefId)
243-
-> Lrc<Vec<Clause<'tcx>>> {
242+
pub fn program_clauses_for_associated_type_value<'a, 'tcx>(
243+
tcx: TyCtxt<'a, 'tcx, 'tcx>,
244+
item_id: DefId,
245+
) -> Lrc<Vec<Clause<'tcx>>> {
244246
// Rule Normalize-From-Impl (see rustc guide)
245247
//
246248
// ```impl<P0..Pn> Trait<A1..An> for A0

0 commit comments

Comments
 (0)