bors 38104f3a88 Auto merge of #123936 - Mark-Simulacrum:zst-no-alloc, r=oli-obk
Codegen ZSTs without an allocation

This makes sure that &[] is equivalent to unsafe code (from_raw_parts(dangling, 0)). No new stable guarantee is intended about whether or not we do this, this is just an optimization.

This regressed in #67000 (no comments I can see about that regression in the PR, though it did change the test modified here). We had previously performed this optimization since #63635.
2024-04-17 18:31:10 +00:00
..
2023-03-30 07:58:50 -05:00
2023-03-30 07:58:50 -05:00
2023-09-10 15:50:48 +00:00
2023-11-24 19:15:52 +01:00
2023-03-30 07:58:50 -05:00
2023-03-30 07:58:50 -05:00
2023-03-30 07:58:50 -05:00
2023-03-30 07:58:50 -05:00
2023-03-30 07:58:50 -05:00
2023-09-10 15:50:48 +00:00
2023-05-11 14:47:56 +00:00
2023-03-30 07:58:50 -05:00
2023-11-24 19:15:52 +01:00
2024-03-12 13:40:40 +00:00
2023-03-30 07:58:50 -05:00
2024-04-16 21:13:21 -04:00
2023-03-30 07:58:50 -05:00
2023-11-24 19:15:52 +01:00
2023-11-30 17:28:29 +11:00