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-09-15 09:51:32 +02:00
2024-07-17 11:01:29 +01:00
2024-09-22 13:55:06 -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-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-07-17 11:01:29 +01:00
2024-08-18 00:07:41 +02:00
2024-08-03 07:57:31 -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-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-22 22:51:53 +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-07-11 20:39:24 +00:00
2024-07-24 16:00:48 +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