Skip to content

Commit

Permalink
Rollup merge of rust-lang#44708 - toidiu:ak-44493, r=nikomatsakis
Browse files Browse the repository at this point in the history
Infer `T: 'x` outlives requirements on structs rust-lang#44493

rust-lang#44493
  • Loading branch information
Mark-Simulacrum authored Sep 29, 2017
2 parents 6bc8ca0 + 15fa85c commit 8083877
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/librustc_typeck/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,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 8083877

Please sign in to comment.