Jonathan Brouwer
ac24945706
Rollup merge of #158738 - Dnreikronos:next_trait_solver/gce_expr_recovery, r=BoxyUwU
...
next_trait_solver: Recover from GCE const exprs
fixes rust-lang/rust#158428
the next solver already rejects `generic_const_exprs` with `-Znext-solver=globally`, but we can still walk into `ConstKind::Expr` while compiling after that error and crash anyway.
imo this should stay as a recovery fix, not a gce implementation. ambiguity still lgtm to me here: idk that we want to say the expr is solved when the feature combo is already invalid, we just need to not ice after the real error.
long-term, proper `ConstKind::Expr` support would be a much bigger thing. the next solver would need to type-check, normalize, compare, and evaluate or prove these exprs structurally, including nested binops, unops, casts, calls, and the result type for `ConstArgHasType`. that's out of scope for this pr.
this teaches both const evaluatable and const arg has type paths to recover on `ConstKind::Expr`, then adds the union repro as a ui test.
2026-07-22 18:02:22 +02:00
..
2026-07-08 07:46:21 +02:00
2026-07-13 21:07:56 -05:00
2025-06-11 15:30:15 +01:00
2024-03-21 00:03:59 +00:00
2024-03-21 00:03:59 +00:00
2024-03-21 00:03:59 +00:00
2025-04-07 19:13:31 +03:00
2025-02-14 00:44:10 -08:00
2024-03-21 00:03:59 +00:00
2026-03-29 18:25:55 +00:00
2026-03-29 18:25:55 +00:00
2024-03-21 00:03:59 +00:00
2026-07-10 16:56:19 -03:00
2024-08-03 07:57:31 -04:00
2026-04-15 21:41:19 +08:00
2026-04-15 21:41:19 +08:00
2024-11-21 01:35:34 +00:00
2026-07-10 16:56:19 -03:00
2026-03-23 20:08:24 +00:00
2026-03-23 20:08:24 +00:00
2026-06-04 16:10:12 +00:00
2026-03-23 20:08:24 +00:00
2026-03-23 20:08:24 +00:00
2025-04-12 22:16:08 +09:00
2025-04-12 22:16:08 +09:00
2024-03-24 10:09:56 +01:00
2024-03-24 10:09:56 +01:00
2025-05-01 20:05:02 +01:00
2025-05-21 20:20:19 +01:00
2026-07-10 16:56:19 -03:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2026-03-23 20:08:24 +00:00
2025-05-23 12:20:35 +00:00
2025-05-23 12:20:35 +00:00
2025-05-23 12:20:35 +00:00
2025-05-23 12:20:35 +00:00
2026-03-24 22:31:37 +09:00
2026-04-20 16:46:57 +06:00
2024-10-10 01:13:29 +02:00
2024-06-05 22:25:42 +01:00
2026-04-13 22:26:05 +02:00
2026-04-03 17:30:54 +01:00
2026-04-03 17:30:54 +01:00
2024-06-05 22:25:42 +01:00
2024-06-05 22:25:42 +01:00
2026-03-23 20:08:24 +00:00
2025-01-11 19:22:06 +00:00
2025-12-02 18:25:13 +00:00
2024-03-24 09:34:11 +01:00
2024-04-28 10:23:10 +02:00
2026-01-01 18:12:34 -08:00
2026-07-10 16:56:19 -03:00
2026-07-10 16:56:19 -03:00
2025-06-02 15:37:15 +00:00
2025-06-02 15:37:15 +00:00
2025-08-19 21:27:10 +02:00
2024-03-22 11:35:31 +01:00
2024-03-22 11:35:31 +01:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-04-03 17:31:00 +01:00
2024-04-24 13:12:33 +01:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2024-06-19 04:41:56 +00:00
2026-07-21 01:03:16 +03:00
2026-07-21 01:03:16 +03:00
2026-07-10 16:56:19 -03:00
2025-04-07 19:13:31 +03:00
2026-07-10 16:56:19 -03:00
2026-07-10 16:56:19 -03:00
2025-04-07 19:13:31 +03:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2024-03-21 00:03:59 +00:00
2024-10-29 16:26:57 +00:00
2024-07-17 11:01:29 +01:00
2026-03-23 20:08:24 +00:00
2026-03-23 20:08:24 +00:00
2024-07-17 11:01:29 +01:00
2025-10-31 08:17:44 +00:00
2025-10-31 08:17:44 +00:00
2026-02-14 04:12:46 +00:00
2026-03-14 20:13:43 +00:00
2026-03-13 07:29:05 -04:00
2024-09-20 20:24:22 -04:00
2024-09-20 20:24:22 -04:00
2026-07-13 21:07:56 -05:00
2026-07-13 21:07:56 -05:00
2026-07-13 21:07:56 -05:00
2026-03-23 20:08:24 +00:00
2026-03-23 20:08:24 +00:00
2024-03-21 00:03:59 +00:00
2025-10-20 10:31:08 +02:00
2026-07-09 15:11:40 -03:00
2026-07-09 15:11:40 -03:00
2024-08-05 17:37:12 -07:00
2024-08-05 17:37:12 -07:00
2024-07-20 19:45:24 -04:00
2024-07-20 19:45:24 -04:00
2026-07-20 18:24:17 +02:00
2026-07-20 18:24:17 +02:00
2025-03-11 12:05:02 +00:00
2026-03-14 20:13:43 +00:00
2025-06-11 15:30:15 +01:00
2026-03-23 20:08:24 +00:00
2026-05-09 17:50:35 +12:00
2025-05-21 20:20:19 +01:00
2025-06-02 15:37:15 +00:00
2025-06-02 15:37:15 +00:00
2025-10-23 00:38:28 +00:00
2025-10-23 00:38:28 +00:00
2026-03-28 16:18:11 +09:00
2026-03-28 16:18:11 +09:00
2025-10-23 00:38:28 +00:00
2025-10-23 00:38:28 +00:00
2026-03-23 20:08:24 +00:00
2025-06-07 13:01:16 +02:00
2026-07-10 16:56:19 -03:00
2025-06-07 13:01:16 +02:00
2024-09-12 13:56:01 -04:00
2025-06-30 08:06:08 +00:00
2025-07-20 22:45:07 +00:00
2025-07-20 22:45:07 +00:00
2026-06-11 06:31:12 +05:30
2026-06-11 06:31:12 +05:30
2026-07-21 01:03:16 +03:00
2026-07-21 01:03:16 +03:00
2025-06-24 18:59:42 +00:00