León Orell Valerian Liehr
4f4b38c40f
Rollup merge of #117382 - gurry:114529-ice-const-eval, r=oli-obk
...
Fail typeck for illegal break-with-value
This is fixes the issue wherein typeck was succeeding for break-with-value exprs at illegal locations such as inside `while`, `while let` and `for` loops which eventually caused an ICE during MIR interpretation for const eval.
Now we fail typeck for such code which prevents faulty MIR from being generated and interpreted, thus fixing the ICE.
Fixes #114529
2023-10-30 10:48:20 +01:00
..
2023-10-27 18:07:53 +02:00
2023-10-25 22:35:12 +00:00
2023-10-29 00:03:52 +00:00
2023-10-30 10:48:17 +01:00
2023-10-27 13:05:48 +00:00
2023-10-27 13:05:48 +00:00
2023-10-26 18:55:05 -07:00
2023-10-29 18:42:02 +00:00
2023-10-27 13:05:48 +00:00
2023-10-29 20:30:50 +00:00
2023-10-27 16:07:01 -04:00
2023-10-28 17:43:07 +00:00
2023-10-30 03:57:10 +00:00
2023-10-29 14:50:53 +00:00
2023-10-23 09:59:40 +00:00
2023-10-28 01:07:38 -07:00
2023-10-20 21:14:02 +00:00
2023-10-26 17:58:02 +00:00
2023-10-26 02:08:07 +00:00
2023-10-27 13:05:48 +00:00
2023-10-18 21:55:15 +00:00
2023-10-29 00:03:52 +00:00
2023-10-26 14:50:23 +00:00
2023-10-25 17:36:04 +02:00
2023-10-30 10:48:20 +01:00
2023-10-26 09:04:26 +11:00
2023-10-29 18:42:02 +00:00
2023-10-28 01:07:38 -07:00
2023-10-18 21:55:15 +00:00
2023-10-21 11:33:05 +02:00
2023-10-21 11:04:19 +00:00
2023-10-27 09:37:25 +00:00
2023-10-28 01:07:38 -07:00
2023-10-20 21:14:01 +00:00
2023-10-29 17:45:05 -04:00
2023-10-27 18:51:43 +00:00
2023-10-24 00:25:32 +00:00
2023-10-30 12:46:43 +11:00
2023-10-21 12:20:05 +11:00
2023-10-29 16:46:47 +00:00
2023-10-29 00:03:52 +00:00
2023-10-23 10:10:22 +00:00
2023-10-28 01:07:35 -07:00
2023-10-28 01:07:35 -07:00
2023-10-29 00:03:52 +00:00
2023-10-28 17:08:04 -07:00
2023-10-29 00:03:52 +00:00
2023-10-29 00:03:52 +00:00
2023-10-27 19:46:06 +02:00
2023-10-29 03:53:36 +00:00
2023-10-30 10:48:18 +01:00
2023-10-18 21:55:15 +00:00
2023-10-29 17:45:05 -04:00
2023-10-26 15:18:50 +02:00
2023-10-29 00:03:52 +00:00