From: Fabian Zaiser Date: Sat, 7 Apr 2018 00:04:28 +0000 (+0200) Subject: Improve function name. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=27393b121054575824417bc8609c1602a08a9d08;hp=5a73fd5e1f7915548bfb63688e97b94f5461e285;p=rust.git Improve function name. --- diff --git a/src/librustc_traits/lowering.rs b/src/librustc_traits/lowering.rs index b418a0aca9a..cbb02e98c3c 100644 --- a/src/librustc_traits/lowering.rs +++ b/src/librustc_traits/lowering.rs @@ -127,7 +127,7 @@ fn into_from_env_goal(self) -> DomainGoal<'tcx> { } 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![]) } @@ -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>> { +pub fn program_clauses_for_associated_type_value<'a, 'tcx>( + tcx: TyCtxt<'a, 'tcx, 'tcx>, + item_id: DefId, +) -> Lrc>> { // Rule Normalize-From-Impl (see rustc guide) // // ```impl Trait for A0