diff options
| author | Josh Stone <jistone@redhat.com> | 2025-02-27 09:09:52 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-02-27 09:09:52 -0800 |
| commit | 7721431d57f7c8eea818d39d7a284459bb15f6e3 (patch) | |
| tree | 2aec42df6e392d45b8a45e93b3d26fefce26cc02 /tests/codegen/patchable-function-entry | |
| parent | b627900585c4d52ba7490bca0b2d1e580b40f815 (diff) | |
| download | rust-7721431d57f7c8eea818d39d7a284459bb15f6e3.tar.gz rust-7721431d57f7c8eea818d39d7a284459bb15f6e3.zip | |
Stop using `hash_raw_entry` in `CodegenCx::const_str`
That unstable feature completed fcp-close, so the compiler needs to be migrated away to allow its removal. In this case, `cg_llvm` and `cg_gcc` were using raw entries to optimize their `const_str_cache` lookup and insertion. We can change that to separate `get` and (on miss) `insert` calls, so we still have the fast path avoiding string allocation when the cache hits.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
