Skip to content

Commit 8083877

Browse files
Rollup merge of rust-lang#44708 - toidiu:ak-44493, r=nikomatsakis
Infer `T: 'x` outlives requirements on structs rust-lang#44493 rust-lang#44493
2 parents 6bc8ca0 + 15fa85c commit 8083877

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_typeck/collect.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,12 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>(
13321332
fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
13331333
def_id: DefId)
13341334
-> ty::GenericPredicates<'tcx> {
1335+
explicit_predicates_of(tcx, def_id)
1336+
}
1337+
1338+
fn explicit_predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
1339+
def_id: DefId)
1340+
-> ty::GenericPredicates<'tcx> {
13351341
use rustc::hir::map::*;
13361342
use rustc::hir::*;
13371343

0 commit comments

Comments
 (0)