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
..
2025-06-02 11:02:50 +02:00
2025-08-22 17:55:15 +00:00
2024-04-24 08:05:29 +00:00
2024-09-25 08:45:40 +00:00
2024-11-02 03:08:04 +00:00
2024-12-05 14:14:17 -08:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2024-11-22 11:12:15 -08:00
2025-11-27 11:19:00 -05:00
2025-04-10 09:56:37 +02:00
2025-04-10 09:56:37 +02:00
2025-06-25 16:52:31 +00:00
2026-07-20 07:28:14 +02:00
2026-03-04 16:38:36 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 22:21:13 +00:00
2024-12-13 00:04:56 +00:00
2024-12-13 00:04:56 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-07-31 17:31:51 +00:00
2025-07-31 17:31:51 +00:00
2025-06-25 16:52:31 +00:00
2025-07-31 17:31:51 +00:00
2025-07-31 17:31:51 +00:00
2025-07-31 17:31:51 +00:00
2025-04-23 15:09:25 +00:00
2024-04-24 08:05:29 +00:00
2025-06-03 10:52:32 -07:00
2025-06-03 10:52:32 -07:00
2026-03-04 08:06:45 +08:00
2025-09-24 15:02:41 +02:00
2024-12-03 23:39:51 +00:00
2024-12-03 23:39:51 +00:00
2024-04-24 08:05:29 +00:00
2025-01-23 20:51:29 +08:00
2025-04-08 23:06:31 +03:00
2024-07-21 22:32:29 -04:00
2024-04-24 08:05:29 +00:00
2026-09-20 17:36:00 +00:00
2026-06-25 17:12:10 +08:00
2025-05-17 12:28:21 +00:00
2026-09-06 12:27:09 +02:00
2024-08-20 18:33:25 +02:00
2025-04-25 19:13:41 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-08-22 17:55:15 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2024-11-22 11:12:15 -08:00
2026-01-13 01:16:58 +00:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-11-02 03:08:04 +00:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-06-27 15:19:08 -04:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2026-07-24 12:58:29 +10:00
2026-07-24 12:58:29 +10:00
2026-07-24 12:58:29 +10:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2026-02-12 15:12:29 +08:00
2026-02-12 15:12:29 +08:00
2025-10-01 00:47:58 +02:00
2025-04-16 20:06:39 +00:00
2025-08-14 18:18:42 +02:00
2026-07-24 12:58:31 +10:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-07-21 22:32:29 -04:00
2024-12-25 01:27:27 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-12-31 15:11:18 +08:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-04-24 08:05:29 +00:00
2024-08-12 19:27:57 -07:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-10-29 16:26:57 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-11-02 03:08:04 +00:00
2024-12-12 23:36:27 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2026-08-24 19:04:00 +02:00
2024-04-24 08:05:29 +00:00
2025-02-21 00:41:17 +00:00
2026-02-16 17:27:40 +01:00
2026-02-16 17:27:40 +01:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-07-26 21:53:13 +00:00
2025-07-26 21:53:13 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2025-07-26 21:53:13 +00:00
2026-03-04 08:06:45 +08:00
2026-03-04 08:06:45 +08:00
2024-04-24 08:05:29 +00:00
2025-09-21 03:26:21 +00:00
2025-09-21 03:26:21 +00:00
2024-04-24 08:05:29 +00:00
2024-08-20 18:33:25 +02:00
2026-03-04 08:06:45 +08:00
2024-04-24 08:05:29 +00:00
2025-08-22 17:55:15 +00:00
2026-03-04 08:06:45 +08:00
2024-04-24 08:05:29 +00:00
2025-07-23 13:48:04 +02:00
2025-07-23 13:48:04 +02:00
2025-07-23 13:48:04 +02:00
2025-04-30 10:44:24 +03:00
2026-09-20 04:11:09 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-07-21 22:32:29 -04:00
2026-03-04 08:06:45 +08:00
2025-07-28 16:09:59 +00:00
2025-07-28 16:09:59 +00:00
2025-04-15 11:14:23 +02:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-07-31 17:31:51 +00:00
2024-04-24 08:05:29 +00:00
2025-07-23 13:48:04 +02:00
2024-04-24 08:05:29 +00:00
2026-07-19 20:55:47 +00:00
2025-01-06 16:08:29 -08:00
2026-09-19 16:09:58 +02:00
2024-10-25 20:16:52 +00:00
2025-02-21 00:41:17 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-04-08 23:06:31 +03:00
2024-04-24 08:05:29 +00:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-07-21 22:32:29 -04:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2026-02-09 15:09:43 +08:00
2026-02-09 15:09:43 +08:00
2025-12-10 23:41:19 +00:00
2025-08-19 13:12:31 +00:00
2026-05-05 17:44:35 +07:00
2024-04-24 08:05:29 +00:00
2024-05-19 19:23:38 -05:00
2024-05-19 19:23:38 -05:00
2024-05-19 19:23:38 -05:00
2026-07-03 14:55:08 +03:00
2024-11-02 16:58:50 +00:00
2024-11-02 16:58:50 +00:00
2024-12-27 19:58:16 +11:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2026-04-13 11:45:07 +01:00
2026-04-13 11:45:07 +01:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2026-07-19 20:55:47 +00:00
2026-08-24 19:04:00 +02:00
2025-06-06 20:12:11 +00:00
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00
2025-06-13 01:16:36 +02:00
2025-07-23 13:48:04 +02:00
2026-03-04 08:06:45 +08:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-04-24 08:05:29 +00:00
2024-07-21 22:32:29 -04:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-10-29 16:26:57 +00:00
2024-04-24 08:05:29 +00:00
2025-08-19 21:27:10 +02:00
2024-04-24 08:05:29 +00:00
2024-07-21 22:32:29 -04:00
2024-04-24 08:05:29 +00:00
2024-07-21 22:32:29 -04:00
2025-11-27 14:13:58 -05:00
2026-01-26 17:34:31 +00:00
2026-02-16 12:24:15 +00:00