mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 14:34:23 +00:00
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>,
|
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::*;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user