add xref to rust-guide
This commit is contained in:
@@ -118,6 +118,10 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
|
||||
return Lrc::new(vec![]);
|
||||
}
|
||||
|
||||
// Rule Implemented-From-Impl
|
||||
//
|
||||
// (see rustc guide)
|
||||
|
||||
let trait_ref = tcx.impl_trait_ref(def_id).unwrap();
|
||||
let trait_ref = ty::TraitPredicate { trait_ref }.lower();
|
||||
let where_clauses = tcx.predicates_of(def_id).predicates.lower();
|
||||
|
||||
Reference in New Issue
Block a user