bors
19469cb536
Auto merge of #128714 - camelid:wf-struct-exprs, r=BoxyUwU
...
WF-check struct field types at construction site
Fixes #126272 .
Fixes #127299 .
Rustc of course already WF-checked the field types at the definition
site, but for error tainting of consts to work properly, there needs to
be an error emitted at the use site. Previously, with no use-site error,
we proceeded with CTFE and ran into ICEs since we are running code with
type errors.
Emitting use-site errors also brings struct-like constructors more in
line with fn-like constructors since they already emit use-site errors
for WF issues.
r? `@BoxyUwU`
2024-08-10 05:27:17 +00:00
..
2024-04-14 23:53:39 +02:00
2024-04-14 23:53:39 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:21:51 +02:00
2024-04-26 17:20:16 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:58 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-19 23:09:37 +02:00
2024-04-14 11:18:23 +02:00
2024-04-19 23:09:37 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-19 23:09:37 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:18:23 +02:00
2024-04-18 06:13:47 +02:00
2024-04-14 23:53:39 +02:00
2024-04-14 11:18:23 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:58 +02:00
2024-04-14 11:21:51 +02:00
2024-04-19 23:09:37 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-19 23:09:37 +02:00
2024-04-14 11:21:58 +02:00
2024-04-18 18:55:20 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:58 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-07-29 14:26:21 -04:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-06-30 17:08:45 +00:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:58 +02:00
2024-04-14 11:21:58 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:58 +02:00
2024-04-18 06:13:47 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-08-03 15:18:09 -04:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-05-29 17:06:54 +01:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-18 18:55:20 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-05-31 11:04:32 +00:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 23:53:39 +02:00
2024-04-14 11:21:51 +02:00
2024-04-14 11:21:51 +02:00
2024-05-29 17:06:54 +01:00
2024-04-14 11:21:58 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-07-29 21:29:08 -04:00
2024-04-18 06:13:47 +02:00
2024-05-27 17:32:56 +02:00
2024-06-19 21:35:37 -07:00
2024-04-21 21:04:32 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-04-18 06:13:47 +02:00
2024-04-21 21:04:32 +02:00
2024-04-19 23:09:37 +02:00
2024-04-21 21:04:32 +02:00
2024-04-21 21:04:32 +02:00
2024-04-21 21:04:32 +02:00
2024-04-26 17:20:16 +02:00
2024-04-26 17:20:16 +02:00
2024-04-26 17:20:16 +02:00
2024-04-26 17:20:16 +02:00
2024-05-05 23:41:08 +02:00
2024-05-05 23:41:08 +02:00
2024-05-05 23:41:08 +02:00
2024-05-18 23:56:57 +02:00
2024-05-27 17:32:56 +02:00
2024-05-27 17:32:56 +02:00
2024-05-18 23:56:57 +02:00
2024-06-28 14:20:43 -04:00
2024-05-27 17:32:56 +02:00
2024-05-27 20:41:09 +02:00
2024-05-27 17:32:56 +02:00
2024-05-27 20:41:09 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-09 10:16:12 +02:00
2024-06-16 20:38:08 +02:00
2024-06-16 20:38:08 +02:00
2024-06-16 20:38:08 +02:00
2024-06-16 20:38:08 +02:00
2024-06-16 20:38:08 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-06-29 09:33:28 +02:00
2024-08-03 15:18:09 -04:00
2024-07-04 23:44:10 +02:00
2024-07-04 23:44:10 +02:00
2024-07-04 23:44:10 +02:00
2024-07-04 23:44:10 +02:00
2024-07-04 23:44:10 +02:00
2024-07-04 23:44:10 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-07-21 17:50:57 +02:00
2024-08-04 21:25:49 +02:00
2024-08-04 21:25:49 +02:00
2024-08-04 21:25:49 +02:00
2024-08-04 21:25:49 +02:00
2024-08-04 21:25:49 +02:00
2024-04-15 21:44:04 +02:00