extract explicit_predicates_of

This commit is contained in:
toidiu 2017-09-23 14:55:40 -04:00
parent f60bc3ac0c
commit 15fa85c195

View File

@ -1325,6 +1325,12 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>(
fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
def_id: DefId) def_id: DefId)
-> ty::GenericPredicates<'tcx> { -> ty::GenericPredicates<'tcx> {
explicit_predicates_of(tcx, def_id)
}
fn explicit_predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
def_id: DefId)
-> ty::GenericPredicates<'tcx> {
use rustc::hir::map::*; use rustc::hir::map::*;
use rustc::hir::*; use rustc::hir::*;