Files
rust/tests/ui/generics
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
..
2025-08-05 19:34:46 +05:00
2025-08-05 19:34:46 +05:00
2025-07-13 00:03:31 +05:00
2025-11-03 16:24:36 +00:00
2025-06-30 11:50:19 +05:00
2026-06-01 14:13:08 +02:00
2026-06-01 14:13:08 +02:00
2026-07-08 23:47:21 +02:00