diff options
| author | toidiu <toidiu@protonmail.com> | 2017-09-26 00:36:38 -0400 |
|---|---|---|
| committer | toidiu <toidiu@protonmail.com> | 2017-10-16 14:24:59 -0400 |
| commit | f01ee857a301e203ab960b50c85ac0c370eb1adc (patch) | |
| tree | cf802174f2e80018c8ce5ae23ee50a6603b9a6bc /src | |
| parent | a96ff3b591d3bcc0ae906cd28053046e2efd7bde (diff) | |
| download | rust-f01ee857a301e203ab960b50c85ac0c370eb1adc.tar.gz rust-f01ee857a301e203ab960b50c85ac0c370eb1adc.zip | |
return an empty inferred_outlives_of
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/collect.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 25a37a2c48c..9a66f07cba4 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -1329,10 +1329,21 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>( }) } +//todo +fn inferred_outlives_of<'a, 'tcx>(_tcx: TyCtxt<'a, 'tcx, 'tcx>, + _def_id: DefId) + -> Vec<ty::Predicate<'tcx>> { + Vec::new() +} + fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> ty::GenericPredicates<'tcx> { - explicit_predicates_of(tcx, def_id) + let explicit = explicit_predicates_of(tcx, def_id); + ty::GenericPredicates { + parent: explicit.parent, + predicates: [&explicit.predicates[..], &inferred_outlives_of(tcx, def_id)[..]].concat() + } } fn explicit_predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, |
