diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-09-29 17:58:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-29 17:58:55 -0600 |
| commit | 808387798711f6a87d2aed6e5476dc9229e40987 (patch) | |
| tree | 38a81fe329fa3119ca3de922af4c1288314ba2c9 | |
| parent | 6bc8ca06c15bab082a00e62a2bc8805741871d7e (diff) | |
| parent | 15fa85c195c38f9b0c2a9003d68d05727603ef68 (diff) | |
| download | rust-808387798711f6a87d2aed6e5476dc9229e40987.tar.gz rust-808387798711f6a87d2aed6e5476dc9229e40987.zip | |
Rollup merge of #44708 - toidiu:ak-44493, r=nikomatsakis
Infer `T: 'x` outlives requirements on structs #44493 https://github.com/rust-lang/rust/issues/44493
| -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 229a1084b0c..25a37a2c48c 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -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::*; |
