Skip to content

Commit 4eaa85d

Browse files
authored
add xref to rust-guide
1 parent e8f3ed5 commit 4eaa85d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_traits/lowering.rs

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
117117
if let ImplPolarity::Negative = tcx.impl_polarity(def_id) {
118118
return Lrc::new(vec![]);
119119
}
120+
121+
// Rule Implemented-From-Impl
122+
//
123+
// (see rustc guide)
120124

121125
let trait_ref = tcx.impl_trait_ref(def_id).unwrap();
122126
let trait_ref = ty::TraitPredicate { trait_ref }.lower();

0 commit comments

Comments
 (0)