1
Fork 0

Rollup merge of #137741 - cuviper:const_str-raw_entry, r=Mark-Simulacrum

Stop using `hash_raw_entry` in `CodegenCx::const_str`

That unstable feature (#56167) 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.
This commit is contained in:
Matthias Krüger 2025-03-03 10:41:00 +01:00 committed by GitHub
commit fd4bf82264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 31 deletions

View file

@ -12,7 +12,6 @@
#![feature(exact_size_is_empty)]
#![feature(extern_types)]
#![feature(file_buffered)]
#![feature(hash_raw_entry)]
#![feature(if_let_guard)]
#![feature(impl_trait_in_assoc_type)]
#![feature(iter_intersperse)]