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