diff options
| author | bors <bors@rust-lang.org> | 2024-04-17 18:31:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-17 18:31:10 +0000 |
| commit | 38104f3a8838f8662ad3cccc4d7262a96bf9724e (patch) | |
| tree | da5fb0d79e387c3957c237e4d2375cbb88e490aa /compiler/rustc_driver_impl/src/session_diagnostics.rs | |
| parent | c45dee5efd0c042e9d1e24559ebd0d6424d8aa70 (diff) | |
| parent | 9ab6e36d8d1cad691a9078921a8ce07de5d4de02 (diff) | |
| download | rust-38104f3a8838f8662ad3cccc4d7262a96bf9724e.tar.gz rust-38104f3a8838f8662ad3cccc4d7262a96bf9724e.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src/session_diagnostics.rs')
0 files changed, 0 insertions, 0 deletions
