1
Fork 0

Point at specific field in struct literal when trait fulfillment fails

This commit is contained in:
Nathan Fenner 2023-01-03 19:54:11 -08:00
parent c8e6a9e8b6
commit 2a67e99d7d
21 changed files with 1150 additions and 111 deletions

View file

@ -1224,6 +1224,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
ImplDerivedObligation(Box::new(ImplDerivedObligationCause {
derived,
impl_def_id,
impl_def_predicate_index: None,
span: obligation.cause.span,
}))
});