about summary refs log tree commit diff
path: root/library/std/src/collections/hash/set
AgeCommit message (Collapse)AuthorLines
2024-09-29Fix std tests for wasm32-wasip2 targetNicola Krumschmidt-0/+2
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-2/+2
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+0
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-01-02Adjust library tests for unused_tuple_struct_fields -> dead_codeJake Goulding-1/+1
2023-11-02Move RandomState and DefaultHasher into std::hash, but don't export for nowltdk-1/+1
2023-06-15Auto merge of #104455 - the8472:dont-drain-on-drop, r=Amanieubors-10/+12
Don't drain-on-drop in DrainFilter impls of various collections. This removes drain-on-drop behavior from various unstable DrainFilter impls (not yet for HashSet/Map) because that behavior [is problematic](https://github.com/rust-lang/rust/issues/43244#issuecomment-641638196) (because it can lead to panic-in-drop when user closures panic) and may become forbidden if [this draft RFC passes](https://github.com/rust-lang/rfcs/pull/3288). closes #101122 [ACP](https://github.com/rust-lang/libs-team/issues/136) affected tracking issues * #43244 * #70530 * #59618 Related hashbrown update: https://github.com/rust-lang/hashbrown/pull/374
2023-06-14update hashbrown and replace Hash{Set,Map}::DrainFilter with ExtractIfThe 8472-10/+12
2023-02-03Specify behavior of HashSet::insertStiopa Koltsov-0/+20
`HashSet::insert` does not replace the value with equal value. Fixes #107581.
2022-10-02Make Hash{Set,Map}::with_hasher unstably constNixon Enraght-Moony-0/+6
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-06-30impl From<[(K, V); N]> for std::collectionsbstrie-0/+12
2020-09-08Tests for HashMap/HashSet::drain_filterMatt Brubeck-0/+71
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+415
Also doing fmt inplace as requested.