Skip to content

Commit f01ee85

Browse files
author
toidiu
committed
return an empty inferred_outlives_of
1 parent a96ff3b commit f01ee85

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/librustc_typeck/collect.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,10 +1329,21 @@ fn early_bound_lifetimes_from_generics<'a, 'tcx>(
13291329
})
13301330
}
13311331

1332+
//todo
1333+
fn inferred_outlives_of<'a, 'tcx>(_tcx: TyCtxt<'a, 'tcx, 'tcx>,
1334+
_def_id: DefId)
1335+
-> Vec<ty::Predicate<'tcx>> {
1336+
Vec::new()
1337+
}
1338+
13321339
fn predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
13331340
def_id: DefId)
13341341
-> ty::GenericPredicates<'tcx> {
1335-
explicit_predicates_of(tcx, def_id)
1342+
let explicit = explicit_predicates_of(tcx, def_id);
1343+
ty::GenericPredicates {
1344+
parent: explicit.parent,
1345+
predicates: [&explicit.predicates[..], &inferred_outlives_of(tcx, def_id)[..]].concat()
1346+
}
13361347
}
13371348

13381349
fn explicit_predicates_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,

0 commit comments

Comments
 (0)