Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wean HashSet from the raw-entry API #555

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Commits on Sep 18, 2024

  1. Wean HashSet from the raw-entry API

    This changes `get_or_insert`, `get_or_insert_with`, and `bitxor_assign`
    to poke directly at the `RawTable` instead of using `raw_entry_mut()`.
    
    `HashSet::get_or_insert_with` also asserts that the converted value is
    actually equivalent after conversion, so we can ensure set consistency.
    `HashSet::get_or_insert_owned` is removed for now, since it offers no
    value over the `_with` method, as we would need to assert that too.
    cuviper committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    8bceb97 View commit details
    Browse the repository at this point in the history
  2. Add tests from rust-lang#400

    Co-authored-by: JustForFun88 <alishergaliev88@gmail.com>
    cuviper and JustForFun88 committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    ad3b430 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6420cfd View commit details
    Browse the repository at this point in the history