Jonathan Brouwer
8c5a762b23
Rollup merge of #163057 - estebank:required-bound-context, r=oli-obk
...
Use span context for enclosing item(s) of unmet bound
Point at item that introduced an unmet bound and in the case of associated items, their container (trait/impl), without using a span label. This adds bits of code to the diagnostic, without explicitly pointing to it.
```
error[E0277]: cannot add `<T as SubEncoder>::ActualSize` to `<T as SubEncoder>::ActualSize`
--> $DIR/issue-54108.rs:23:17
|
LL | type Size = <Self as SubEncoder>::ActualSize;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `<T as SubEncoder>::ActualSize + <T as SubEncoder>::ActualSize`
|
= help: the trait `Add` is not implemented for `<T as SubEncoder>::ActualSize`
note: required by a bound in `Encoder::Size`
--> $DIR/issue-54108.rs:8:16
|
LL | pub trait Encoder {
LL | type Size: Add<Output = Self::Size>;
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Encoder::Size`
```
r? @oli-obk
2026-09-21 15:19:26 +02:00
..
2026-09-20 04:11:09 +00:00
2026-04-27 08:24:04 -04:00
2026-03-21 20:10:07 +00:00
2026-09-19 16:09:58 +02:00
2026-07-15 16:35:42 +00:00
2026-07-20 07:28:14 +02:00
2025-12-17 20:47:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-04-28 23:10:46 +02:00
2026-07-06 09:20:14 +02:00
2026-04-04 17:59:54 +01:00
2026-04-04 17:59:54 +01:00
2026-07-24 19:34:16 +06:00
2026-09-20 17:36:00 +00:00
2026-02-08 13:32:50 +01:00
2026-09-20 17:36:00 +00:00
2026-05-08 15:05:49 +09:00
2026-05-08 15:05:49 +09:00
2025-12-23 21:13:24 +09:00
2025-12-23 21:13:24 +09:00
2026-09-19 16:09:58 +02:00
2026-02-17 20:32:17 +09:00
2026-09-06 11:33:35 -03:00
2026-06-28 03:56:28 -05:00
2026-06-28 03:48:49 -05:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-09-06 11:33:35 -03:00
2026-02-01 18:20:31 +00:00
2026-02-01 18:20:31 +00:00
2026-08-20 16:44:50 +03:00
2026-08-20 16:44:50 +03:00
2026-05-23 12:53:44 +08:00
2026-04-27 18:57:50 +08:00
2026-08-27 08:45:12 +08:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2025-12-16 02:10:08 +09:00
2026-05-13 15:03:47 +01:00
2026-06-28 03:48:49 -05:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-30 09:21:49 -07:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-08-24 17:13:08 +08:00
2026-08-24 17:13:08 +08:00
2026-08-24 17:24:48 +08:00
2026-08-24 17:24:48 +08:00
2026-08-24 17:24:48 +08:00
2026-05-23 12:53:44 +08:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-07-06 02:31:30 +05:30
2026-07-06 02:31:30 +05:30
2026-07-06 02:31:30 +05:30
2026-05-23 12:53:44 +08:00
2026-08-13 14:12:34 +02:00
2026-08-13 14:12:34 +02:00
2026-01-26 17:34:31 +00:00
2026-02-01 04:09:25 +00:00
2026-08-27 08:45:12 +08:00
2026-08-27 08:45:12 +08:00
2026-07-21 01:03:16 +03:00
2026-07-21 01:03:16 +03:00
2025-12-17 20:47:48 +01:00
2025-12-17 20:47:49 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-01-12 18:07:38 -05:00
2025-12-16 02:10:08 +09:00
2026-01-31 14:01:54 +01:00
2026-01-31 14:01:54 +01:00
2026-05-13 15:03:47 +01:00
2026-01-15 17:22:58 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-13 15:03:47 +01:00
2026-05-07 23:33:00 +09:00
2026-05-07 23:33:00 +09:00
2025-12-08 07:06:13 +09:00
2026-07-20 14:15:25 +03:00
2026-07-20 14:15:25 +03:00
2026-05-13 15:03:47 +01:00
2026-08-12 19:19:11 +06:00
2026-01-31 14:01:54 +01:00
2026-06-19 10:45:44 +02:00
2026-08-10 10:05:45 +02:00
2026-08-10 10:05:45 +02:00
2026-08-10 10:05:45 +02:00
2026-04-27 08:24:04 -04:00
2026-07-20 07:28:14 +02:00