Files
rust/tests/ui/resolve
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-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-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-07-03 23:53:11 +02:00
2026-07-05 21:27:38 +02: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-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
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-20 13:53:15 +02:00
2026-04-09 23:27:38 +08:00
2026-06-20 22:37:27 +02:00
2026-06-20 22:37:27 +02:00
2026-01-05 15:35:01 +09:00
2026-02-22 11:40:27 +01: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