about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-03 12:08:52 +0100
committerGitHub <noreply@github.com>2024-11-03 12:08:52 +0100
commite9379382f923d5a8f097f5c2cad346016d9f837c (patch)
treeae047a053e0fe57f91810b4df17919ad1550d3c1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb438a5cd2aeeaf887c488e2e49481fa89e478af9 (diff)
parent52666238cfadb8b5780ffa337ad3128c2c7726af (diff)
downloadrust-e9379382f923d5a8f097f5c2cad346016d9f837c.tar.gz
rust-e9379382f923d5a8f097f5c2cad346016d9f837c.zip
Rollup merge of #132503 - RalfJung:const-hash-map, r=Amanieu
better test for const HashMap; remove const_hash leftovers

The existing `const_with_hasher` test is kind of silly since the HashMap it constructs can never contain any elements. So this adjusts the test to construct a usable HashMap, which is a bit non-trivial since the default hash builder cannot be built in `const`. `BuildHasherDefault::new()` helps but is unstable (https://github.com/rust-lang/rust/issues/123197), so we also have a test that does not involve that type.

The second commit removes the last remnants of https://github.com/rust-lang/rust/issues/104061, since they aren't actually useful -- without const traits, you can't do any hashing in `const`.

Cc ``@rust-lang/libs-api`` ``@rust-lang/wg-const-eval``
Closes #104061
Related to https://github.com/rust-lang/rust/issues/102575
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions