Stuart Cook
7728f46fce
Rollup merge of #159456 - meta-legend:fix-149588, r=cjgillot
...
Fix the reporting of layout normalization failures in transmute checks
Fixes rust-lang/rust#149588 .
"check_transmute" normalized the source and target types before computing their size skeletons. When that normalization failed, it created a {type error} placeholder and continued into the generic transmute-size diagnostic. This hid the actual layout failure and produced an unhelpful E0512 message.
This changes transmute checking to report the layout normalization failure directly and return early. The diagnostic now explains that rustc cannot determine the layout because the associated type cannot be normalized, instead of showing `{type error}` as the source type.
I also updated the existing ./tests/ui/layout/normalization-failure.rs test to cover the corrected diagnostic.
2026-08-24 14:21:49 +10:00
..
2026-06-01 11:39:20 +05:00
2026-06-01 11:39:20 +05:00
2025-12-02 18:25:13 +00:00
2026-04-25 13:46:42 -07:00
2026-07-24 12:58:31 +10:00
2026-07-18 23:29:41 -07:00
2026-07-18 23:29:41 -07:00
2026-07-21 20:40:05 -07:00
2026-07-21 20:40:05 -07:00
2026-07-21 20:40:05 -07:00
2026-07-21 20:40:05 -07:00
2026-04-10 12:13:52 +02:00
2026-07-18 23:29:41 -07:00
2026-04-10 12:13:48 +02:00
2026-03-21 20:10:07 +00:00
2026-04-10 12:13:48 +02:00
2026-07-18 23:29:41 -07:00
2026-04-10 12:13:48 +02:00
2026-04-10 12:13:48 +02:00
2026-04-10 12:13:48 +02:00
2025-06-30 08:06:08 +00:00
2025-06-07 13:42:30 +02:00
2025-10-23 00:38:28 +00:00
2025-10-23 00:38:28 +00:00
2025-10-31 08:17:44 +00:00
2025-12-02 18:25:13 +00:00
2026-04-10 12:13:48 +02:00
2026-07-18 23:29:41 -07:00
2026-04-10 12:13:48 +02:00
2026-07-18 23:29:41 -07:00
2026-06-12 10:12:45 +02:00
2026-06-12 10:12:45 +02:00
2026-05-04 16:56:59 +02:00
2026-06-04 16:10:12 +00:00
2026-03-17 10:07:52 +00:00
2026-03-17 10:07:52 +00:00
2025-12-02 18:25:13 +00:00
2026-08-23 17:32:53 +02:00
2026-08-23 17:32:53 +02:00
2025-07-05 01:25:48 +05:00
2025-07-05 01:25:48 +05:00
2026-03-31 15:36:37 -04:00
2026-05-04 16:56:59 +02:00
2026-06-04 16:10:12 +00:00
2026-07-07 20:53:47 -05:00
2025-11-02 16:20:06 +01:00
2025-10-13 15:30:26 +02:00
2026-02-13 13:50:43 +00:00
2026-02-13 13:50:43 +00:00
2026-01-29 11:55:26 +01:00
2026-01-13 01:16:58 +00:00
2026-08-12 15:16:11 +06:00
2026-08-12 15:16:11 +06:00
2026-08-12 15:16:11 +06:00
2026-08-12 13:32:45 +06:00
2026-08-12 13:32:45 +06:00
2026-04-10 12:13:52 +02:00
2026-07-18 23:29:41 -07:00
2026-06-02 21:12:15 +02:00
2026-07-24 12:58:31 +10:00
2026-06-02 21:12:15 +02:00
2026-07-24 12:58:31 +10:00
2026-04-10 12:13:48 +02:00
2026-07-18 23:29:41 -07:00
2026-06-08 11:44:41 +02:00
2026-06-08 11:44:41 +02:00
2025-11-02 16:20:06 +01:00
2025-10-13 15:30:26 +02:00
2025-08-22 20:10:27 +00:00
2025-12-02 18:25:13 +00:00
2026-04-10 12:13:48 +02:00
2025-07-20 22:45:07 +00:00
2025-07-20 22:45:07 +00:00
2026-04-10 12:13:48 +02:00
2025-10-15 09:35:04 +01:00
2026-07-21 23:14:20 +08:00
2026-07-21 23:14:20 +08:00
2025-07-20 22:45:07 +00:00
2025-07-20 22:45:07 +00:00
2025-07-20 22:45:07 +00:00
2025-07-20 22:45:07 +00:00
2026-04-10 12:13:48 +02:00
2026-07-18 23:29:41 -07:00
2026-04-10 12:13:48 +02:00