Skip to content

Commit 15fa85c

Browse files
author
toidiu
committed
extract explicit_predicates_of
1 parent f60bc3a commit 15fa85c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_typeck/collect.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,12 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>(
13251325
fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
13261326
def_id: DefId)
13271327
-> ty::GenericPredicates<'tcx> {
1328+
explicit_predicates_of(tcx, def_id)
1329+
}
1330+
1331+
fn explicit_predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
1332+
def_id: DefId)
1333+
-> ty::GenericPredicates<'tcx> {
13281334
use rustc::hir::map::*;
13291335
use rustc::hir::*;
13301336

0 commit comments

Comments
 (0)