1
Fork 0

Auto merge of #87628 - estebank:unmet-explicit-lifetime-bound, r=oli-obk

Point at unmet explicit lifetime obligation bound

r? `@oli-obk`

Split off of #85799.
This commit is contained in:
bors 2021-08-02 23:16:40 +00:00
commit f63ab6cfa2
24 changed files with 238 additions and 55 deletions

View file

@ -99,7 +99,7 @@ impl<'a, 'tcx> ConstraintConversion<'a, 'tcx> {
GenericArgKind::Type(t1) => {
// we don't actually use this for anything, but
// the `TypeOutlives` code needs an origin.
let origin = infer::RelateParamBound(DUMMY_SP, t1);
let origin = infer::RelateParamBound(DUMMY_SP, t1, None);
TypeOutlives::new(
&mut *self,