Logo
Explore Help
Register Sign In
Mirrors/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2026-05-23 02:27:39 +03:00
Code Issues Packages Projects Releases Wiki Activity
Files
8dea87d9f4928154a488dd0d8ccb78fe46bb3f57
rust/library
T
History
Michael Howell 4025e95113 Rollup merge of #102574 - aDotInTheVoid:const_collections_with_hasher, r=oli-obk,fee1-dead
Make Hash{Set,Map}::with_hasher unstably const

Makes  [`HashMap::with_hasher`](https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.with_hasher) and [`HashSet::with_hasher`](https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.with_hasher) `const`.

This allows

```rust
static GlobalState: Mutex<HashMap<i32, i32, SomeHasher>> = Mutex::new(HashMap::with_hasher(SomeHasher::new()))
```

Tracking issue: #102575
2022-10-04 20:45:12 -07:00
..
alloc
Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472
2022-10-04 16:11:01 +05:30
backtrace @ 07872f28cd
…
core
Rollup merge of #102647 - oli-obk:tilde_const_bounds, r=fee1-dead
2022-10-04 18:26:39 +02:00
panic_abort
…
panic_unwind
…
portable-simd
…
proc_macro
Fix typo in proc_macro Span::eq
2022-09-17 19:15:30 -04:00
profiler_builtins
…
rtstartup
…
rustc-std-workspace-alloc
…
rustc-std-workspace-core
…
rustc-std-workspace-std
…
std
Rollup merge of #102574 - aDotInTheVoid:const_collections_with_hasher, r=oli-obk,fee1-dead
2022-10-04 20:45:12 -07:00
stdarch @ 699c093a42
Update stdarch
2022-09-15 13:05:28 -04:00
test
Rollup merge of #100451 - hovinen:no-panic-on-result-err-in-test, r=Mark-Simulacrum
2022-10-02 20:42:20 +05:30
unwind
…
Powered by Gitea Version: 1.26.2 Page: 3901ms Template: 50ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API