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