Skip to content

Commit

Permalink
Improve function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanzier committed Apr 15, 2018
1 parent 5a73fd5 commit 27393b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/librustc_traits/lowering.rs
Expand Up @@ -127,7 +127,7 @@ crate fn program_clauses_for<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefI
}
hir::map::Node::NodeImplItem(item) => {
if let hir::ImplItemKind::Type(..) = item.node {
program_clauses_for_associated_type(tcx, def_id)
program_clauses_for_associated_type_value(tcx, def_id)
} else {
Lrc::new(vec![])
}
Expand Down Expand Up @@ -243,8 +243,10 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
Lrc::new(tcx.mk_clauses(iter::once(Clause::ForAll(ty::Binder::dummy(clause)))))
}

pub fn program_clauses_for_associated_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, item_id: DefId)
-> Lrc<Vec<Clause<'tcx>>> {
pub fn program_clauses_for_associated_type_value<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
item_id: DefId,
) -> Lrc<Vec<Clause<'tcx>>> {
// Rule Normalize-From-Impl (see rustc guide)
//
// ```impl<P0..Pn> Trait<A1..An> for A0
Expand Down

0 comments on commit 27393b1

Please sign in to comment.