diff options
| author | toidiu <toidiu@protonmail.com> | 2017-09-23 14:55:40 -0400 |
|---|---|---|
| committer | toidiu <toidiu@protonmail.com> | 2017-09-23 14:55:40 -0400 |
| commit | 15fa85c195c38f9b0c2a9003d68d05727603ef68 (patch) | |
| tree | 489d1220525771d488d11d47aef9f9c5a62f6c56 | |
| parent | f60bc3ac0c20f7b3ab85df1e5e2e3217a7a95630 (diff) | |
| download | rust-15fa85c195c38f9b0c2a9003d68d05727603ef68.tar.gz rust-15fa85c195c38f9b0c2a9003d68d05727603ef68.zip | |
extract explicit_predicates_of
| -rw-r--r-- | src/librustc_typeck/collect.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 79cb9147c18..8f7cf946a49 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -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::*; |
