Skip to content

Commit

Permalink
extract explicit_predicates_of
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed Sep 23, 2017
1 parent f60bc3a commit 15fa85c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/librustc_typeck/collect.rs
Expand Up @@ -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::*;

Expand Down

0 comments on commit 15fa85c

Please sign in to comment.