Jonathan Brouwer
aa8cf33235
Rollup merge of #156968 - Dnreikronos:fix/gca-const-item-diagnostic-156729, r=petrochenkov
...
diagnostics: suggest generic_const_args for const ops
fixes rust-lang/rust#156729
when const ops hit generic params, like `[u8; size_of::<self>()]`, the diagnostic only points at `generic_const_exprs`. imo that's a stale nudge now that `generic_const_args` and `type const` items are the path we want people trying.
add help for `generic_const_args` and `type const` items in the resolve and hir_ty_lowering paths. also skip the old gce suggestion once `min_generic_const_args` is enabled, and emit both suggestions for the `self` alias path so the "alternatively" wording doesn't hang there by itself. includes the regression test from the issue. lgtm.
2026-07-11 19:05:10 +02:00
..
2026-04-15 23:50:36 +05:30
2026-04-02 03:25:08 +08:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-03-02 00:23:24 +01:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-01-05 15:35:01 +09:00
2026-04-20 13:41:33 +03:00
2026-04-20 13:41:33 +03:00
2026-02-26 23:34:41 +08:00
2026-02-26 23:34:41 +08:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-03-09 09:11:06 +00:00
2026-02-04 04:45:52 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-16 22:39:22 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-05-04 19:38:47 +02:00
2026-03-16 21:49:04 +00:00
2026-03-16 21:49:04 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-03-08 22:02:16 +09:00
2026-03-08 22:02:16 +09:00
2026-03-08 22:02:16 +09:00
2026-03-08 22:02:16 +09:00
2026-03-08 22:02:16 +09:00
2026-03-08 22:02:16 +09:00
2026-07-05 21:27:38 +02:00
2025-12-12 16:22:25 +00:00
2025-12-12 16:22:25 +00:00
2026-01-18 04:34:46 +09:00
2026-01-18 04:34:46 +09:00
2026-02-27 22:54:10 +09:00
2026-02-27 22:54:10 +09:00
2026-02-27 22:54:10 +09:00
2026-02-27 22:54:10 +09:00
2026-06-29 17:35:03 -05:00
2026-06-29 17:35:03 -05:00
2026-07-03 23:53:11 +02:00
2026-07-03 23:53:11 +02:00
2026-01-16 18:17:35 +01:00
2026-01-16 18:17:35 +01:00
2026-07-03 23:53:11 +02:00
2026-07-03 23:53:11 +02:00
2026-07-05 21:27:38 +02:00
2026-07-05 21:27:38 +02:00
2026-06-07 17:58:59 +02:00
2026-06-07 17:58:59 +02:00
2026-06-08 21:02:36 +02:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-04-15 01:38:14 +00:00
2026-04-15 01:38:14 +00:00
2026-07-10 16:56:19 -03:00
2026-04-15 01:38:14 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:53 +00:00
2026-06-29 17:35:03 -05:00
2026-06-29 17:35:03 -05:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-02-26 23:34:41 +08:00
2026-02-26 23:34:41 +08:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-06-29 17:35:03 -05:00
2026-06-29 17:35:03 -05:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-06-17 06:16:54 +02:00
2026-06-17 06:16:54 +02:00
2025-12-16 02:10:08 +09:00
2025-12-16 02:10:08 +09:00
2025-12-18 21:18:05 +01:00
2025-12-18 21:18:05 +01:00
2026-03-15 01:50:36 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-03-21 12:38:17 +00:00
2026-07-03 23:53:11 +02:00
2026-07-03 23:53:11 +02:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-04-02 23:59:33 +01:00
2026-04-02 23:59:33 +01:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-06-03 08:50:24 -07:00
2025-12-18 21:18:05 +01:00
2026-03-16 22:22:25 +08:00
2026-04-20 13:53:15 +02:00
2026-04-12 14:38:43 +02:00
2026-07-09 10:51:14 +02:00
2026-02-10 13:45:09 +01:00
2026-04-09 23:27:38 +08:00
2026-04-09 23:27:38 +08:00
2026-04-30 20:51:53 +02:00
2026-04-30 20:51:53 +02:00
2026-04-15 23:50:36 +05:30
2026-06-20 22:37:27 +02:00
2026-06-20 22:37:27 +02:00
2026-03-17 17:39:59 +08:00
2026-06-04 16:10:12 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-01-05 15:35:01 +09:00
2026-02-22 11:40:27 +01:00
2026-03-05 23:53:54 +01:00
2026-02-01 04:09:25 +00:00
2026-02-01 04:09:25 +00:00
2026-02-01 04:09:25 +00:00
2026-02-01 04:09:25 +00:00
2026-02-04 04:45:52 +00:00
2026-06-17 15:11:58 -07:00
2026-06-17 15:11:58 -07:00
2026-06-17 15:11:58 -07:00
2025-12-17 14:53:14 +00:00
2025-12-17 14:53:14 +00:00
2026-06-29 17:35:03 -05:00
2026-06-29 17:35:03 -05:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-07-03 23:53:11 +02:00
2026-07-03 23:53:11 +02:00
2026-04-02 03:25:08 +08:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2026-06-08 21:02:36 +02:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-04-30 20:51:53 +02:00
2026-04-30 20:51:53 +02:00
2026-04-30 20:51:53 +02:00