Skip to content

Commit

Permalink
return an empty inferred_outlives_of
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed Oct 16, 2017
1 parent a96ff3b commit f01ee85
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/librustc_typeck/collect.rs
Expand Up @@ -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>,
Expand Down

0 comments on commit f01ee85

Please sign in to comment.