diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-03-03 10:41:00 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 10:41:00 +0100 | 
| commit | fd4bf822645497beb845ec608a5d9e6104cd7713 (patch) | |
| tree | f4a304e618d558924daecd324f38afbf930f06ca /compiler/rustc_codegen_llvm/src/lib.rs | |
| parent | 130521278696605bab51af238d47b29ae88ba8b0 (diff) | |
| parent | 396c2a8659b0b99254a25b7c0431a99d8223fb5c (diff) | |
| download | rust-fd4bf822645497beb845ec608a5d9e6104cd7713.tar.gz rust-fd4bf822645497beb845ec608a5d9e6104cd7713.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/lib.rs | 1 | 
1 files changed, 0 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs index c88372db491..8f72307eeba 100644 --- a/compiler/rustc_codegen_llvm/src/lib.rs +++ b/compiler/rustc_codegen_llvm/src/lib.rs @@ -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)] | 
