Skip to content

Commit

Permalink
Auto merge of #123936 - Mark-Simulacrum:zst-no-alloc, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Apr 17, 2024
2 parents 3e5e541 + c17e292 commit 69747d6
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 69747d6

Please sign in to comment.