Matthias Krüger
2bca5c4fc1
Rollup merge of #130714 - compiler-errors:try-structurally-resolve-const, r=BoxyUwU
...
Introduce `structurally_normalize_const`, use it in `rustc_hir_typeck`
Introduces `structurally_normalize_const` to typecking to separate the "eval a const" step from the "try to turn a valtree into a target usize" in HIR typeck, where we may still have infer vars and stuff around.
I also changed `check_expr_repeat` to move a double evaluation of a const into a single one. I'll leave inline comments.
r? ```@BoxyUwU```
I hesitated to really test this on the new solver where it probably matters for unevaluated consts. If you're worried about the side-effects, I'd be happy to craft some more tests 😄
2024-09-23 06:45:36 +02:00
..
2024-08-27 14:05:54 +00:00
2024-08-10 00:54:16 +00:00
2024-09-21 22:17:18 +01:00
2024-09-16 10:55:07 -04:00
2024-09-22 13:54:16 -04:00
2024-06-19 14:58:29 +00:00
2024-09-15 09:51:32 +02:00
2024-03-20 17:29:58 +00:00
2024-07-17 11:01:29 +01:00
2024-09-22 13:55:06 -04:00
2024-06-05 20:08:00 -04:00
2024-08-31 15:35:42 +03:00
2024-09-20 09:41:16 +08:00
2024-07-09 07:44:17 +00:00
2024-07-09 07:44:17 +00:00
2024-09-12 13:56:01 -04:00
2024-09-12 13:56:01 -04:00
2024-06-28 10:57:35 +00:00
2024-07-09 07:44:17 +00:00
2024-07-09 07:44:17 +00:00
2024-04-10 20:36:14 +00:00
2024-04-10 20:36:14 +00:00
2024-04-10 20:36:14 +00:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-06-05 22:25:42 +01:00
2024-06-05 22:25:42 +01:00
2024-06-05 22:25:42 +01:00
2024-07-17 11:01:29 +01:00
2023-01-11 09:32:08 +00:00
2024-08-18 00:07:41 +02:00
2024-08-03 07:57:31 -04:00
2024-02-16 20:02:50 +00:00
2024-06-12 12:34:47 +00:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2023-12-02 10:38:42 +01:00
2024-07-22 22:51:53 +00:00
2024-02-16 20:02:50 +00:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-22 22:51:53 +00:00
2024-07-22 22:51:53 +00:00
2024-09-07 09:23:28 +08:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-02-16 20:02:50 +00:00
2024-04-16 11:52:12 +00:00
2024-04-16 11:52:12 +00:00
2024-07-11 20:39:24 +00:00
2024-05-14 20:28:55 +08:00
2024-05-14 20:28:55 +08:00
2024-06-19 04:41:56 +00:00
2024-06-19 04:41:56 +00:00
2024-06-05 22:25:42 +01:00
2024-06-05 22:25:42 +01:00
2024-04-04 15:02:27 +00:00
2024-04-04 15:02:27 +00:00
2024-06-12 08:53:59 +00:00
2024-07-24 16:00:48 +00:00
2024-06-19 14:58:29 +00:00
2024-06-28 10:18:20 -04:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-16 19:27:28 -07:00
2024-07-16 19:27:28 -07:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-09 07:44:17 +00:00
2024-07-09 07:44:17 +00:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-09-20 10:01:02 -07:00
2024-09-20 10:02:14 -07:00
2024-08-03 07:57:31 -04:00
2024-09-12 13:56:01 -04:00
2024-09-12 13:56:01 -04:00
2024-06-05 22:25:42 +01:00
2024-06-05 22:25:42 +01:00
2024-06-19 14:58:29 +00:00