Matthias Krüger
4d5c4e5205
Rollup merge of #121470 - clubby789:anon-struct-in-enum, r=fmease
...
Don't ICE on anonymous struct in enum variant
Fixes #121446
Computing `adt_def` for the anon struct calls `adt_def` on the parent to find its repr. If the parent is a non-item (e.g. an enum variant) we should have already emitted at least one error, so we just use the repr of the anonymous struct to avoid an ICE.
cc ``@frank-king``
2024-02-23 17:02:04 +01:00
..
2024-01-16 21:15:31 +01:00
2024-02-21 20:15:52 +01:00
2024-02-18 03:49:28 -05:00
2024-02-23 08:35:18 +11:00
2024-02-21 17:02:30 +11:00
2024-02-16 00:27:32 +01:00
2024-02-15 08:09:42 +01:00
2024-02-23 09:42:12 +01:00
2024-02-20 15:13:55 +01:00
2024-02-21 20:50:47 +01:00
2024-02-21 20:50:47 +01:00
2024-02-22 08:01:37 +00:00
2024-02-22 09:59:41 +00:00
2024-02-22 12:51:05 +11:00
2024-02-18 16:54:15 +00:00
2024-02-22 08:03:47 +11:00
2024-02-18 06:01:40 +03:00
2024-02-15 10:34:41 +00:00
2024-02-22 08:01:37 +00:00
2024-02-22 13:46:33 +11:00
2024-02-23 17:02:03 +01:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-23 12:25:23 +00:00
2024-02-23 17:02:04 +01:00
2024-02-12 12:47:23 +08:00
2024-02-23 09:42:12 +01:00
2024-02-22 08:03:47 +11:00
2024-02-06 13:12:33 +11:00
2024-02-08 07:44:34 -05:00
2024-02-23 12:12:49 +00:00
2024-02-21 22:48:59 +01:00
2024-02-06 13:12:33 +11:00
2024-02-23 09:42:11 +01:00
2024-02-20 07:35:45 +01:00
2024-02-21 20:50:47 +01:00
2024-02-06 13:12:33 +11:00
2024-02-21 05:32:08 +00:00
2024-02-21 22:48:59 +01:00
2024-02-23 17:02:03 +01:00
2024-02-22 18:09:54 +01:00
2024-02-16 09:53:01 +00:00
2024-02-23 11:42:28 +11:00
2024-02-20 13:22:17 +11:00
2024-02-13 15:53:15 +00:00
2024-02-22 13:47:30 +11:00
2024-02-17 12:46:18 +01:00
2024-02-21 22:48:58 +01:00
2024-02-20 12:05:09 +00:00
2024-02-23 10:57:11 +11:00
2024-02-15 08:09:42 +01:00
2024-02-22 18:09:54 +01:00
2024-02-21 10:35:54 +11:00
2024-02-15 08:09:42 +01:00
2024-02-22 18:09:54 +01:00
2024-02-17 09:40:44 +11:00
2024-02-21 20:50:47 +01:00
2024-02-12 23:18:54 +01:00
2024-02-23 17:02:03 +01:00
2024-02-23 09:42:10 +01:00
2024-02-20 17:30:49 +01:00
2024-02-06 13:12:33 +11:00
2024-02-21 08:55:56 +00:00
2024-02-22 17:43:57 +01:00
2024-02-17 09:40:44 +11:00