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

Relax bounds on HashMap/HashSet #67642

Merged
merged 2 commits into from
Feb 13, 2020
Merged

Commits on Dec 26, 2019

  1. Relax bounds on HashMap to match hashbrown

    No functional changes are made, and all APIs are moved to strictly less
    restrictive bounds.
    
    These APIs changed from the old bound listed to no trait bounds:
    
    K: Hash + Eq
    * new
    * with_capacity
    
    K: Eq + Hash, S: BuildHasher
    * with_hasher
    * with_capacity_and_hasher
    * hasher
    
    K: Eq + Hash + Debug -> K: Debug
    S: BuildHasher -> S
    <HashMap as Debug>
    
    K: Eq + Hash -> K
    S: BuildHasher + Default -> S: Default
    <HashMap as Default>
    Mark-Simulacrum committed Dec 26, 2019
    Configuration menu
    Copy the full SHA
    3b92689 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2019

  1. Relax bounds on HashSet to match hashbrown

    No functional changes are made, and all APIs are moved to strictly less
    restrictive bounds.
    
    These APIs changed from the old bound listed to the new bound:
    
    T: Hash + Eq -> T
    * new
    * with_capacity
    
    T: Eq + Hash, S: BuildHasher -> T
    * with_hasher
    * with_capacity_and_hasher
    * hasher
    
    T: Eq + Hash + Debug -> T: Debug
    S: BuildHasher -> S
    <HashSet as Debug>
    
    T: Eq + Hash -> T
    S: BuildHasher + Default -> S: Default
    <HashSet as Default>
    Mark-Simulacrum committed Dec 27, 2019
    Configuration menu
    Copy the full SHA
    48859db View commit details
    Browse the repository at this point in the history