extract explicit_predicates_of
This commit is contained in:
parent
f60bc3ac0c
commit
15fa85c195
@ -1325,6 +1325,12 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>(
|
||||
fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
def_id: DefId)
|
||||
-> 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::*;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user