Dylan DPC bc9567fbf6
Rollup merge of #103445 - fmease:fix-50291, r=estebank
`#[test]`: Point at return type if `Termination` bound is unsatisfied

Together with #103142 (already merged) this fully fixes #50291.

I don't consider my current solution of changing a few spans “here and there” very clean since the
failed obligation is a `FunctionArgumentObligation` and we point at a type instead of a function argument.

If you agree with me on this point, I can offer to keep the spans of the existing nodes and instead inject
`let _: AssertRetTyIsTermination<$ret_ty>;` (type to be defined in `libtest`) similar to `AssertParamIsEq` etc.
used by some built-in derive-macros.

I haven't tried that approach yet though and cannot promise that it would actually work out or
be “cleaner” for that matter.

````@rustbot```` label A-libtest A-diagnostics
r? ````@estebank````
2022-11-11 20:51:38 +05:30
..
2022-09-27 13:31:52 +02:00
2021-12-31 12:51:27 -05:00
2022-08-22 07:35:33 +10:00
2022-08-17 08:10:56 +10:00
2022-10-23 10:09:44 +02:00
2022-07-29 15:52:15 +10:00
2022-09-14 08:49:10 +08:00
2022-08-16 11:17:15 +10:00
2022-07-29 15:52:15 +10:00
2021-12-15 23:43:13 +01:00