Files
rust/library/core/src
Matthias Krüger 32d21cb0b2 Rollup merge of #146509 - RalfJung:res-opt-layout-guarantees, r=traviscross
Result/Option layout guarantee clarifications

- It seems worth spelling out that this guarantee allows particular transmutes.
- After the `Result` section was written, the `Option` section it referenced gained *more* guarantees, saying that `None` is represented as `[0u8; N]`. Those guarantees were not meant to apply to `Result`. Make the `Result` section more self-contained to make this more clear.
- "Type has no fields" is unclear since there is no general definition of what the fields of some arbitrary type are. Replace that by a more accurate description of the actual check implemented [here](https://github.com/rust-lang/rust/blob/e379c7758667f900aaf5551c4553c7d4c121e3e1/compiler/rustc_lint/src/types.rs#L828-L838).

r? `@traviscross`
2025-10-18 15:09:02 +02:00
..
2025-09-01 21:38:26 -04:00
2025-09-01 21:38:26 -04:00
2025-09-12 12:39:31 +03:00
2025-10-04 16:07:06 +02:00
2025-10-14 21:49:24 -04:00
2025-09-27 01:11:01 +03:00
2025-09-01 21:38:26 -04:00
2025-09-08 22:07:43 -04:00
2025-09-01 21:38:26 -04:00
2025-09-26 18:41:32 -04:00
2025-05-12 15:33:30 +02:00
2024-07-29 08:26:52 +10:00
2025-10-06 08:39:41 -04:00
2025-09-07 21:16:35 -07:00
2024-06-11 15:47:00 +02:00
2025-06-15 22:08:41 +02:00
2025-10-15 09:40:44 +01:00
2025-10-18 00:59:17 +00:00
2025-10-05 17:45:27 +00:00
2025-09-12 12:39:31 +03:00
2025-10-18 00:59:17 +00:00
2025-09-26 18:41:32 -04:00
2025-09-16 13:11:34 -06:00